gamification.missionStateChanged
Complete a mission in OK gamification service
Name | Required | Type | Description |
---|---|---|---|
uid | false | | User id. Used for calls without user session |
missionId | false | | Mission identifier |
goalCount | false | | Amount of mission completions |
uuid | false | | Event UUID |
type | false | | Mission type |
Authorization
Session is optional (for External applications - required)Required permissions
- VALUABLE_ACCESS
Method is used to complete a mission that is available for set user in your app.
To get available missions use gamification.missionInfo method.
Type
{ "capacity": "int", "coinsNow": "long", "done": "int", "nextAvailableTs": "long", "rewards": [ { "option": "String", "rewardAmount": "int", "rewardDurationMs": "long", "rewardType": "String" } ] }
Application paramters
User session data
|
Method
List of paramters
Используем для подписи secret_key = session_secret_key
Используем для подписи secret_key = application_secret_key
Используем для подписи secret_key = MD5(access_token + application_secret_key)
secret_key =
Сортируем и склеиваем параметры запроса и secret_key
Рассчитываем MD5 от полученной строки и получаем параметр sig