mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-27 21:48:56 +02:00
28 lines
1.0 KiB
Plaintext
Vendored
28 lines
1.0 KiB
Plaintext
Vendored
UserID = 1;
|
|
|
|
CalendarsStructure = New Structure;
|
|
CalendarsStructure.Insert("type" , "user");
|
|
CalendarsStructure.Insert("ownerId" , UserID);
|
|
CalendarsStructure.Insert("name" , "new calendar");
|
|
CalendarsStructure.Insert("description", "My new calendar");
|
|
CalendarsStructure.Insert("color" , "#FFFFFF");
|
|
CalendarsStructure.Insert("text_color" , "#000000");
|
|
|
|
ExportStructure = New Structure;
|
|
ExportStructure.Insert("ALLOW", "True");
|
|
ExportStructure.Insert("SET" , "all");
|
|
|
|
CalendarsStructure.Insert("export", ExportStructure);
|
|
|
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
|
|
|
|
Result = OPI_Bitrix24.CreateCalendar(URL, CalendarsStructure);
|
|
|
|
CalendarsStructure.Insert("name" , "Another calendar");
|
|
CalendarsStructure.Insert("description", "My other new calendar");
|
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
|
Token = "b4c59767006e9f06006b12e400000001000...";
|
|
|
|
Result = OPI_Bitrix24.CreateCalendar(URL, CalendarsStructure, Token);
|