badges.setUserActiveBadge

Method is available for whitelisted apps only. To enable this method in your app please send a request to api-support@ok.ru email

Sets badge as active for user

NameRequiredTypeDescription
badge_id true Integer

Badge id

status false String

Text status

ttl false Long

How long in millis badge is set as active

Authorization

Session is required

Required permissions

  • VALUABLE_ACCESS

It is required to add a badge to user’s collection before setting it as an active badge.

To add badge to user’s collection use badges.buyUserBadge method.

Type

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