Bitrix API

Helper

Table of Contents

Constants

ACCOUNT_TYPE  = 'office365'
DELTA_INTERVAL  = ['from' => '-1 month', 'to' => '+20 year']
EVENT_TYPES  = ['single' => 'singleInstance', 'series' => 'seriesMaster', 'exception' => 'exception', 'occurrence' => 'occurrence', 'deleted' => 'deleted']
NEED_SCOPE  = ['User.Read', 'Calendars.ReadWrite', 'offline_access']
PUSH_PATH  = '/bitrix/tools/calendar/office365push.php'
RECURRENCE_TYPES  = ['daily' => 'daily', 'weekly' => 'weekly', 'absoluteMonthly' => 'absoluteMonthly', 'relativeMonthly' => 'relativeMonthly', 'absoluteYearly' => 'absoluteYearly', 'relativeYearly' => 'relativeYearly']
SERVER_PATH  = self::SERVER_PATH_V1
SERVER_PATH_V1  = 'https://graph.microsoft.com/v1.0/'
TIME_FORMAT_LONG  = 'Y-m-d\TH:i:s.u'
TYPE  = 'office365'

Methods

getDeltaInterval()  : array<string|int, Date>
isVendorConnection()  : bool

Constants

ACCOUNT_TYPE

public mixed ACCOUNT_TYPE = 'office365'

DELTA_INTERVAL

public mixed DELTA_INTERVAL = ['from' => '-1 month', 'to' => '+20 year']

EVENT_TYPES

public mixed EVENT_TYPES = ['single' => 'singleInstance', 'series' => 'seriesMaster', 'exception' => 'exception', 'occurrence' => 'occurrence', 'deleted' => 'deleted']

NEED_SCOPE

public mixed NEED_SCOPE = ['User.Read', 'Calendars.ReadWrite', 'offline_access']

PUSH_PATH

public mixed PUSH_PATH = '/bitrix/tools/calendar/office365push.php'

RECURRENCE_TYPES

public mixed RECURRENCE_TYPES = ['daily' => 'daily', 'weekly' => 'weekly', 'absoluteMonthly' => 'absoluteMonthly', 'relativeMonthly' => 'relativeMonthly', 'absoluteYearly' => 'absoluteYearly', 'relativeYearly' => 'relativeYearly']

SERVER_PATH

public mixed SERVER_PATH = self::SERVER_PATH_V1

SERVER_PATH_V1

public mixed SERVER_PATH_V1 = 'https://graph.microsoft.com/v1.0/'

TIME_FORMAT_LONG

public mixed TIME_FORMAT_LONG = 'Y-m-d\TH:i:s.u'

TYPE

public mixed TYPE = 'office365'

Methods

getDeltaInterval()

public getDeltaInterval() : array<string|int, Date>
Return values
array<string|int, Date>

= [ 'from' => Date, 'to' => Date, ]

isVendorConnection()

public isVendorConnection(string $accountType) : bool
Parameters
$accountType : string
Return values
bool

        
On this page

Search results