Url: https://api.playkey.net/rest/PlaykeyAPI.svc/user/games/leftfree
HTTP Method: POST
The following is an description request Json body:
lang - Display language api_version - API version (default equal 1) ga_clientId - Google Analytics ID token - Authentication token
The following is an example request Json body:
{ "lang": "lang", "api_version": 606674979, "ga_clientId": "gaclientid", "token": "token" }
Description of how to response:
error - Error information code - Error code. Error 0 - no error message - Error message. Empty if none stat_play_info - Game stats game_play_info - Remaining time on games, in seconds [ code_game - Game code left_free_time_info - Remaining time on games, in seconds left_seconds_demo - Remaining demo time on games, in seconds left_seconds_trial - Remaining trial time on games, in seconds ]
The following is an example response Json body:
{ "error": { "code": 0, "message": "string" }, "stat_play_info": [ { "code_game": "string", "left_free_time_info": { "left_seconds_demo": 606674979, "left_seconds_trial": 106325023 } }, { "code_game": "string", "left_free_time_info": { "left_seconds_demo": 606674979, "left_seconds_trial": 106325023 } } ] }
The following is an example response Xml body:
<result xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <error> <code>0</code> <message>string</message> </error> <stat_play_info> <game_play_info> <code_game>string</code_game> <left_free_time_info> <left_seconds_demo>606674979</left_seconds_demo> <left_seconds_trial>106325023</left_seconds_trial> </left_free_time_info> </game_play_info> <game_play_info> <code_game>string</code_game> <left_free_time_info> <left_seconds_demo>606674979</left_seconds_demo> <left_seconds_trial>106325023</left_seconds_trial> </left_free_time_info> </game_play_info> </stat_play_info> </result>