Difference between revisions of "Requests"

From MSX - Wiki
Jump to navigation Jump to search
(Created page with "If JSON files are requested from a server, a version parameter <code>v</code> and a timestamp parameter <code>t</code> are automatically appended. For example, the action <cod...")
 
Line 1: Line 1:
 
If JSON files are requested from a server, a version parameter <code>v</code> and a timestamp parameter <code>t</code> are automatically appended. For example, the action <code>content:http://msx.benzac.de/info/data/guide/videos.json</code> will result in following request <code>http://msx.benzac.de/info/data/guide/videos.json?v=0.1.128&t=1612867695816</code>.
 
If JSON files are requested from a server, a version parameter <code>v</code> and a timestamp parameter <code>t</code> are automatically appended. For example, the action <code>content:http://msx.benzac.de/info/data/guide/videos.json</code> will result in following request <code>http://msx.benzac.de/info/data/guide/videos.json?v=0.1.128&t=1612867695816</code>.
  
Since version '''0.1.128''', it is possible to replace specific keywords inside a JSON URL with the corresponding value. For example, the action <code>content:http://msx.benzac.de/info/data/guide/videos.json?host={HOST}&secure={SECURE}&client={CLIENT}&platform={PLATFORM}&player={PLAYER}&width={WIDTH}&height={HEIGHT}</code> will result in following request <code>http://msx.benzac.de/info/data/guide/videos.json?host=msx.benzac.de&secure=false&client=212.201.104.11&platform=default&player=html5%2Fplugin&width=1280&height=720&v=0.1.128&t=1612868128244</code>.
+
Since version '''0.1.128''', it is also possible to replace specific keywords inside a JSON URL with the corresponding values. For example, the action <code>content:http://msx.benzac.de/info/data/guide/videos.json?host={HOST}&secure={SECURE}&client={CLIENT}&platform={PLATFORM}&player={PLAYER}&width={WIDTH}&height={HEIGHT}</code> will result in following request <code>http://msx.benzac.de/info/data/guide/videos.json?host=msx.benzac.de&secure=false&client=212.201.104.11&platform=default&player=html5%2Fplugin&width=1280&height=720&v=0.1.128&t=1612868128244</code>.

Revision as of 12:56, 9 February 2021

If JSON files are requested from a server, a version parameter v and a timestamp parameter t are automatically appended. For example, the action content:http://msx.benzac.de/info/data/guide/videos.json will result in following request 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. For example, the action content:http://msx.benzac.de/info/data/guide/videos.json?host={HOST}&secure={SECURE}&client={CLIENT}&platform={PLATFORM}&player={PLAYER}&width={WIDTH}&height={HEIGHT} will result in following request http://msx.benzac.de/info/data/guide/videos.json?host=msx.benzac.de&secure=false&client=212.201.104.11&platform=default&player=html5%2Fplugin&width=1280&height=720&v=0.1.128&t=1612868128244.