badges.getUserActiveBadge

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 current active badge for a user

NameRequiredTypeDescription
uid false String

User id

Authorization

Session is required

Required permissions

  • VALUABLE_ACCESS

Type

{ "active_badge": { "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