apps.setVipOfferStatus ✎ Edit on GitHub

Changes VIP offer state specifying if the user got the offer’s in-game bonus

NameRequiredTypeDescription
slot true int

Slot number (0 .. 4)

given false boolean

Has user received a bonus for a VIP offer

Authorization

Session is required

Required permissions:

  • VALUABLE_ACCESS

An app can have no more than 5 bonus slots for each user. When offers list is renewed via apps.setVipOffers method slot values remain the same.

It is recommended to check if user is indeed VIP before giving him a bonus.

This information can be acquired by users.getCurrentUser method when “user.VIP” fields is requested in “fields” parameter.

Also it is important to check if user has already received this bonus by apps.checkVipOfferStatus method.

Response

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