This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:tvip_json_middleware_api:1 [2016/10/03 10:39] Vladimir Manov |
en:tvip_json_middleware_api:1 [2017/11/17 20:29] (current) Efim Karelink [Messages] |
||
---|---|---|---|
Line 49: | Line 49: | ||
^HTTP code ^Commands | | ^HTTP code ^Commands | | ||
- | | 403 | All,ex serverinfo,auth,register| | + | | 403 | All, except serverinfo,auth,register| |
| 404 | All | | | 404 | All | | ||
+ | **All other** API requests should respond HTTP/200, even on error. Error code should be provided in "status" field of JSON responce object! | ||
=== Request HTTP Headers === | === Request HTTP Headers === | ||
Line 533: | Line 534: | ||
Supported message types:\\ | Supported message types:\\ | ||
^Message Type ^Source ^Description^ | ^Message Type ^Source ^Description^ | ||
- | | user_message | server | Display text messages to user screen, availible types: notify, confirm. | | + | | user_message | server | Display text messages to user screen, available types: notify, confirm. | |
| reinit | server | Ask client to refresh server_info. | | | reinit | server | Ask client to refresh server_info. | | ||
| refresh_channel_list | server | Telling device to update channel list. | | | refresh_channel_list | server | Telling device to update channel list. | |