badges.getUsersBadgesInfo

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 a list of active badges for specified users

NameRequiredTypeDescription
fields true UserBadgeField

Response fields

ids true List[]

List of user ids

Authorization

Session is required

Required permissions

  • VALUABLE_ACCESS

Type

{ "anchor": "String", "badges": { "lang.Long": { "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