Documentation

OnAppMethodConfirm

Called, when the portal's administrator permission is received for the use of methods, requiring confirmation.

Event parameters

Parameter Description
TOKEN Authorization token used in permission request
METHOD REST API method, for the use of which the permission was requested.
CONFIRMED Permission result, 0 - denied, 1 - granted

Event data example:

array (
  'event' => 'ONAPPMETHODCONFIRM',
  'data' => 
  array (
    'TOKEN' => 'fkp963yuv1ggkfbs5z3f5hy8lilm0iw6',
    'METHOD' => 'voximplant.user.get',
    'CONFIRMED' => '1',
    'LANGUAGE_ID' => 'en',
  ),
  'ts' => '1478790852',
  'auth' => 
  array (
    'domain' => 'portal.bitrix24.com',
    'client_endpoint' => 'https://portal.bitrix24.com/rest/',
    'server_andpoint' => 'https://oauth.bitrix.info/rest/',
    'member_id' => '74ef8a46a75104de55d5d4a61b98ab6d',
    'application_token' => 'c289487163b58658eae5e8b42eaf11b8',
  ),
)


© «Bitrix24», 2001-2024
Up