2025-01-18 17:35:34 +03:00
|
|
|
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";
|
2025-01-27 21:50:57 +03:00
|
|
|
Token = "b4c59767006e9f06006b12e400000001000...";
|
2025-01-18 17:35:34 +03:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.CreateCalendar(URL, CalendarsStructure, Token);
|