notifications.sendSimple

Sends a simple notification from the app to the user

NameRequiredTypeDescription
uid true String

Recipient identifier

text true String

A message that will be sent as a notification to the user

mark false String

The tag that will be passed to the application in the custom_args parameter on transition by notification

qualifier false String
custom_button_key false String

If set, it allows replacement of the default test value on the button in the notification. For example, if “button_accept” is specified, the button will say “Accept” instead of “Start playing”.
You can use following values:

  • button_accept
  • button_activation_accept
  • button_attach_badge
  • button_attend
  • button_buyOKs
  • button_close
  • button_confirmFriend
  • button_confirmPymk
  • button_decline
  • button_enable
  • button_fill
  • button_goToSettings
  • button_hide
  • button_ignore
  • button_install
  • button_join
  • button_later
  • button_launch
  • button_launch_app
  • button_maybe
  • button_moderate
  • button_more
  • button_open
  • button_open_all
  • button_pay
  • button_promote
  • button_realProlong
  • button_realProlong
  • button_rejectRequest
  • button_see
  • button_sendPresent
  • button_show
  • button_subscribe
  • button_unsubscribe_cancel
  • button_use_coupon
  • button_view

Authorization

Session is prohibited

Required permissions

  • VALUABLE_ACCESS

Restrictions

В тексте оповещения допускается указывать не более 5 спец. символов или эмодзи

  • The notification can only be sent to users who launched the application no more than 14 days ago, otherwise a LIMIT REACHED error will be returned.
  • Notification text length may not exceed 100 characters
  • Each individual user can have a maximum of 1 individual notification. If a user has not closed a previous notification and the app sends a newer one to that user, the old one will be deleted.
  • The method has a separate limit of 5 calls from the app per day per user

Type

"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