badges.getBadgesInfo
Method is available for whitelisted apps only. To enable this method in your app please send a request to api-support@ok.ru email
Returns badge info for list of badges
Name | Required | Type | Description |
---|---|---|---|
fields | true | | Response fields |
ids | true | | List of badge ids |
Authorization
Session is requiredRequired permissions
- VALUABLE_ACCESS
Type
{ "badges": [ { "active_till": "Date", "available_till": "Date", "background_img_link": "String", "button_action_link": "String", "button_action_title": "String", "category_id": "Integer", "currency": "String", "description": "String", "id": "Integer", "img_url": "String", "in_catalog": "Boolean", "is_active": "Boolean", "life_time": "Long", "link": "String", "mood_only": "Boolean", "price": "String", "ref": "String", "title": "String", "type": "String", "user_text": "String" } ], "success": "boolean" }
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