Url: https://api.playkey.net/rest/PlaykeyAPI.svc/user/subscriptions/extend
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 code - Promo code
The following is an example request Json body:
{ "lang": "lang", "api_version": 1143539347, "ga_clientId": "gaclientid", "token": "token", "code": "code" }
Description of how to response:
error - Error information code - Error code. Error 0 - no error message - Error message. Empty if none is_new - Subscription is new, not extended duration_days - Number of days promo code is valid limit_duration_minutes - Number of minutes promo code limit is valid is_time_based - Subscription is new, not extended
The following is an example response Json body:
{ "error": { "code": 0, "message": "string" }, "is_new": true, "duration_days": 1914067275, "limit_duration_minutes": 1365128552, "is_time_based": true }
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> <is_new>true</is_new> <duration_days>1914067275</duration_days> <limit_duration_minutes>1365128552</limit_duration_minutes> <is_time_based>true</is_time_based> </result>