Requests

From MSX - Wiki
Revision as of 08:34, 10 October 2024 by Benzac (talk | contribs)
Jump to navigation Jump to search

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. Please see following available keywords (please note that the keyword {ID} is only available in version 0.1.142 or higher, and the keyword {LANGUAGE} is only available in version 0.1.160 or higher).

{HOST}, {SECURE}, {CLIENT}, {PLATFORM}, {ID}, {PLAYER}, {LANGUAGE}, {WIDTH}, {HEIGHT}.

Please see following action examples and the corresponding HTTP requests.

Note: If you want to use the {LANGUAGE} keyword for startup data, you must use the reference property, because the dictionary is loaded after the startup data and always starts with the value default.