badges.getUserBadgeList

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 user’s badge collection

NameRequiredTypeDescription
fields true UserBadgeField

Response fields

anchor false String

Paging marker

direction false PagingDirection

Paging direction

count false Integer

Amount of badges in a response

Authorization

Session is required

Required permissions

  • VALUABLE_ACCESS

Type

{ "anchor": "String", "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" } ], "has_more": "boolean", "success": "boolean", "total_count": "int" }

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