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
Name | Required | Type | Description |
---|---|---|---|
badge_id | true | | Badge id |
status | false | | Text status |
ttl | false | | How long in millis badge is set as active |
Authorization
Session is requiredRequired 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