Get information about progress of all active user missions

Url: https://api.playkey.net/rest/PlaykeyAPI.svc/user/missions/progress

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": 306700425,
    "ga_clientId": "gaclientid",
    "token": "token"
}

Description of how to response:

missions_progresses - Current user's progress of the mission
     - 
    [
        code - String unique code of mission
        rules_progresses - Current user's progress of the mission rules
             - 
            [
                is_completed - Flag indicating whether the rule was completed
                progress_value - Current user's progress of the mission rule
                type - String code of mission rule
            ]
        available_rewards - Mission reward information
             - 
            [
                active_to - Active to date of mission reward
                is_received - String code of mission reward
                value - String value of receiving reward
                reward_id - User mission reward id
                type - String code of mission reward
            ]
    ]
error - Error information
    code - Error code. Error 0 - no error
    message - Error message. Empty if none

The following is an example response Json body:

{
    "error": {
        "code": 0,
        "message": "string"
    },
    "missions_progresses": [
        {
            "code": "string",
            "rules_progresses": [
                {
                    "is_completed": true,
                    "progress_value": 306700425,
                    "type": "string"
                },
                {
                    "is_completed": true,
                    "progress_value": 306700425,
                    "type": "string"
                }
            ],
            "available_rewards": [
                {
                    "active_to": "01-01-0001 00:00:00",
                    "is_received": true,
                    "reward_id": 306700425,
                    "type": "string",
                    "value": "string"
                },
                {
                    "active_to": "01-01-0001 00:00:00",
                    "is_received": true,
                    "reward_id": 306700425,
                    "type": "string",
                    "value": "string"
                }
            ]
        },
        {
            "code": "string",
            "rules_progresses": [
                {
                    "is_completed": true,
                    "progress_value": 306700425,
                    "type": "string"
                },
                {
                    "is_completed": true,
                    "progress_value": 306700425,
                    "type": "string"
                }
            ],
            "available_rewards": [
                {
                    "active_to": "01-01-0001 00:00:00",
                    "is_received": true,
                    "reward_id": 306700425,
                    "type": "string",
                    "value": "string"
                },
                {
                    "active_to": "01-01-0001 00:00:00",
                    "is_received": true,
                    "reward_id": 306700425,
                    "type": "string",
                    "value": "string"
                }
            ]
        }
    ]
}

The following is an example response Xml body:

<UserMissionsProgressResponse xmlns="http://schemas.datacontract.org/2004/07/XMLGen.Responses" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <error xmlns="">
    <code>0</code>
    <message>string</message>
  </error>
  <missions_progresses xmlns:a="http://schemas.datacontract.org/2004/07/XMLGen.Responses.AdditionalInfo">
    <a:MissionProgressInfo>
      <a:code>string</a:code>
      <a:rules_progresses>
        <a:MissionRuleProgressInfo>
          <a:is_completed>true</a:is_completed>
          <a:progress_value>1077228353</a:progress_value>
          <a:type>string</a:type>
        </a:MissionRuleProgressInfo>
        <a:MissionRuleProgressInfo>
          <a:is_completed>true</a:is_completed>
          <a:progress_value>1077228353</a:progress_value>
          <a:type>string</a:type>
        </a:MissionRuleProgressInfo>
      </a:rules_progresses>
      <a:available_rewards>
        <a:UserMissionRewardInfo>
          <a:active_to>01-01-0001 00:00:00</a:active_to>
          <a:is_received>true</a:is_received>
          <a:reward_id>1077228353</a:reward_id>
          <a:type>string</a:type>
          <a:value>string</a:value>
        </a:UserMissionRewardInfo>
        <a:UserMissionRewardInfo>
          <a:active_to>01-01-0001 00:00:00</a:active_to>
          <a:is_received>true</a:is_received>
          <a:reward_id>1077228353</a:reward_id>
          <a:type>string</a:type>
          <a:value>string</a:value>
        </a:UserMissionRewardInfo>
      </a:available_rewards>
    </a:MissionProgressInfo>
    <a:MissionProgressInfo>
      <a:code>string</a:code>
      <a:rules_progresses>
        <a:MissionRuleProgressInfo>
          <a:is_completed>true</a:is_completed>
          <a:progress_value>1077228353</a:progress_value>
          <a:type>string</a:type>
        </a:MissionRuleProgressInfo>
        <a:MissionRuleProgressInfo>
          <a:is_completed>true</a:is_completed>
          <a:progress_value>1077228353</a:progress_value>
          <a:type>string</a:type>
        </a:MissionRuleProgressInfo>
      </a:rules_progresses>
      <a:available_rewards>
        <a:UserMissionRewardInfo>
          <a:active_to>01-01-0001 00:00:00</a:active_to>
          <a:is_received>true</a:is_received>
          <a:reward_id>1077228353</a:reward_id>
          <a:type>string</a:type>
          <a:value>string</a:value>
        </a:UserMissionRewardInfo>
        <a:UserMissionRewardInfo>
          <a:active_to>01-01-0001 00:00:00</a:active_to>
          <a:is_received>true</a:is_received>
          <a:reward_id>1077228353</a:reward_id>
          <a:type>string</a:type>
          <a:value>string</a:value>
        </a:UserMissionRewardInfo>
      </a:available_rewards>
    </a:MissionProgressInfo>
  </missions_progresses>
</UserMissionsProgressResponse>