payment.getVipStatus
Method is available for whitelisted apps only. To enable this method in your app please send a request to api-support@ok.ru email
Receives information about user VIP subscription status
Authorization
Session is requiredRequired permissions
- VALUABLE_ACCESS
In a response method provides two parameters:
- vip - shows if a user has an active VIP subscription;
- trial - shows a type of subscription: trial subscription (true) or real subscription (false).
Type
{ "trial": "boolean", "vip": "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