Difference between revisions of "Requests"

From MSX - Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
* <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>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>.
 
* <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>.
 +
* <code>video:resolve:http://msx.benzac.de/services/resolve.php?type=video&host={HOST}&secure={SECURE}&platform={PLATFORM}&player={PLAYER}</code> → <code>http://msx.benzac.de/services/resolve.php?type=video&host=msx.benzac.de&secure=false&platform=default&player=html5%2Fplugin&v=0.1.128&t=1612867695816</code>.

Revision as of 12:15, 9 February 2021

If JSON files are requested from a server, a version parameter v (which indicates the current Media Station X version) and a timestamp parameter t (which indicates the current timestamp) are automatically appended. 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: {HOST}, {SECURE}, {CLIENT}, {PLATFORM}, {PLAYER}, {WIDTH}, {HEIGHT}. Please see following action examples and the corresponding HTTP requests.