1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-10-08 22:51:57 +02:00
Files
OpenIntegrations/docs/en/examples/Bitrix24/GetCalendarEvents.txt
Vitaly the Alpaca (bot) fb1d5eb506 Main build (Jenkins)
2025-10-08 00:46:26 +03:00

26 lines
788 B
Plaintext
Vendored

URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
OwnerID = 1;
Type = "user";
Result = OPI_Bitrix24.GetCalendarEvents(URL, OwnerID, Type);
URL = "b24-ar17wx.bitrix24.by";
Token = "c866e568006e9f06006b12e400000001000...";
EventID = "2592";
CalendarID1 = "1422";
CalendarID2 = "1424";
Tomorrow = OPI_Tools.GetCurrentDate() + 86400;
NextDay = Tomorrow + 86400;
ArrayOfCalendars = New Array;
ArrayOfCalendars.Add(CalendarID1);
ArrayOfCalendars.Add(CalendarID2);
Filter = New Structure;
Filter.Insert("from" , Tomorrow);
Filter.Insert("to" , NextDay);
Filter.Insert("section", ArrayOfCalendars);
Result = OPI_Bitrix24.GetCalendarEvents(URL, OwnerID, Type, Filter, Token);