badges.buyUserBadge
Method is available for whitelisted apps only. To enable this method in your app please send a request to api-support@ok.ru email
Adds a badge to user’s badge collection
Name | Required | Type | Description |
---|---|---|---|
badge_id | true | | Badge id |
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 set badge as active use badges.setUserActiveBadge 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