This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
api [2026/05/18 15:43] nightfly [Read-only clients apps API] |
api [2026/05/19 01:45] (current) nightfly [Read-only clients apps API] |
||
|---|---|---|---|
| Line 321: | Line 321: | ||
| ====== Read-only clients apps API ====== | ====== Read-only clients apps API ====== | ||
| - | same way but not requires | + | Works same way, but requires |
| + | |||
| + | You can set user credentials as raw GET variables or inside keys in " | ||
| + | |||
| + | < | ||
| + | curl -s -X POST ' | ||
| + | </ | ||
| + | |||
| + | or | ||
| + | |||
| + | < | ||
| + | curl -s -X POST ' | ||
| + | </ | ||
| + | |||
| + | |||
| + | ====== Supported objects and methods list ====== | ||
| + | |||
| + | ^ Object ^ Method ^ Parameters required ^ Action/ | ||
| + | | channels | ||
| + | |||
| + | |||
| + | ====== Usage examples ====== | ||
| + | |||
| + | ===== Normal request ===== | ||
| + | < | ||
| + | curl -s -X POST ' | ||
| + | </ | ||
| <code json> | <code json> | ||
| Line 329: | Line 355: | ||
| " | " | ||
| { | { | ||
| - | " | + | " |
| - | " | + | " |
| " | " | ||
| " | " | ||
| Line 338: | Line 364: | ||
| }, | }, | ||
| { | { | ||
| - | " | + | " |
| - | " | + | " |
| " | " | ||
| " | " | ||
| " | " | ||
| " | " | ||
| - | " | + | " |
| } | } | ||
| ] | ] | ||
| Line 350: | Line 376: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | ===== Wrong credentials ===== | ||
| + | |||
| + | < | ||
| + | curl -s -X POST ' | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | { | ||
| + | |||
| + | " | ||
| + | " | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Wrong request format ===== | ||
| + | |||
| + | < | ||
| + | curl -s -X POST ' | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | { | ||
| + | |||
| + | " | ||
| + | " | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||