Difference between revisions of "Requests"
Jump to navigation
Jump to search
| Line 5: | Line 5: | ||
Since version '''0.1.128''', it is also possible to replace specific keywords inside a JSON URL with the corresponding values. Following keywords are available: <code>{HOST}</code>, <code>{SECURE}</code>, <code>{CLIENT}</code>, <code>{PLATFORM}</code>, <code>{PLAYER}</code>, <code>{WIDTH}</code>, <code>{HEIGHT}</code>. Please see following action examples and the corresponding HTTP requests. | Since version '''0.1.128''', it is also possible to replace specific keywords inside a JSON URL with the corresponding values. Following keywords are available: <code>{HOST}</code>, <code>{SECURE}</code>, <code>{CLIENT}</code>, <code>{PLATFORM}</code>, <code>{PLAYER}</code>, <code>{WIDTH}</code>, <code>{HEIGHT}</code>. Please see following action examples and the corresponding HTTP requests. | ||
* <code>menu:http://msx.benzac.de/info/data/guide/actions.json?platform={PLATFORM}</code> → <code>http://msx.benzac.de/info/data/guide/actions.json?platform=default&v=0.1.128&t=1612867695816</code>. | * <code>menu:http://msx.benzac.de/info/data/guide/actions.json?platform={PLATFORM}</code> → <code>http://msx.benzac.de/info/data/guide/actions.json?platform=default&v=0.1.128&t=1612867695816</code>. | ||
| − | * <code>content:http://msx.benzac.de/info/data/guide/videos.json? | + | * <code>content:http://msx.benzac.de/info/data/guide/videos.json?platform={PLATFORM}&player={PLAYER}</code> → <code>http://msx.benzac.de/info/data/guide/videos.json?platform=default&player=html5%2Fplugin&v=0.1.128&t=1612867695816</code>. |
| + | * <code>slideshow:http://msx.benzac.de/info/data/guide/images.json?width={WIDTH}&height={HEIGHT}</code> → <code>http://msx.benzac.de/info/data/guide/images.json?width=1280&height=720&v=0.1.128&t=1612867695816</code>. | ||
Revision as of 12:07, 9 February 2021
If JSON files are requested from a server, a version parameter v and a timestamp parameter t are automatically appended. Please see following action examples and the corresponding HTTP requests.
menu:http://msx.benzac.de/info/data/guide/actions.json→http://msx.benzac.de/info/data/guide/actions.json?v=0.1.128&t=1612867695816.content:http://msx.benzac.de/info/data/guide/videos.json→http://msx.benzac.de/info/data/guide/videos.json?v=0.1.128&t=1612867695816.
Since version 0.1.128, it is also possible to replace specific keywords inside a JSON URL with the corresponding values. Following keywords are available: {HOST}, {SECURE}, {CLIENT}, {PLATFORM}, {PLAYER}, {WIDTH}, {HEIGHT}. Please see following action examples and the corresponding HTTP requests.
menu:http://msx.benzac.de/info/data/guide/actions.json?platform={PLATFORM}→http://msx.benzac.de/info/data/guide/actions.json?platform=default&v=0.1.128&t=1612867695816.content:http://msx.benzac.de/info/data/guide/videos.json?platform={PLATFORM}&player={PLAYER}→http://msx.benzac.de/info/data/guide/videos.json?platform=default&player=html5%2Fplugin&v=0.1.128&t=1612867695816.slideshow:http://msx.benzac.de/info/data/guide/images.json?width={WIDTH}&height={HEIGHT}→http://msx.benzac.de/info/data/guide/images.json?width=1280&height=720&v=0.1.128&t=1612867695816.