Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:zebrixrestapi [2018/11/16 16:02] admin [Example of GET API on screen] |
en:zebrixrestapi [2021/08/25 10:29] (current) |
||
---|---|---|---|
Line 49: | Line 49: | ||
<code javascript>{'contentType':"page",'ContentId': contentId, 'useScheduling': False}</code> | <code javascript>{'contentType':"page",'ContentId': contentId, 'useScheduling': False}</code> | ||
- | * ontentType (string): possible value « page » and « playlist » | + | * **contentType (string):** possible value « page » and « playlist » |
- | * contentId (integer) : id of the content you want to set | + | * **contentId (integer)** : id of the content you want to set |
- | * useScheduling (boolean) : false is mandatory when setting an arbitrary content. | + | * **useScheduling (boolean)** : false is mandatory when setting an arbitrary content. |
- | **To go back to schedule mode, you only need to POST the following JSON** | + | To go back to schedule mode, you only need to POST the following JSON |
<code javascript>{'useScheduling': True}</code> | <code javascript>{'useScheduling': True}</code> | ||
Line 63: | Line 63: | ||
To get ID of pages and playlist, you can make a GET request to following URLs: | To get ID of pages and playlist, you can make a GET request to following URLs: | ||
- | /api/screen | + | * /api/screen |
- | /api/page | + | * /api/page |
- | /api/playlist | + | * /api/playlist |
===== How to use API for datasource ===== | ===== How to use API for datasource ===== |