Create calendar
Creates an empty calendar
- Parameters
- Advanced call ?
Function CreateCalendar(Val Token, Val Name) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Name | --title | String | ✔ | Name of the created calendar |
Returns
Map Of KeyAndValue - serialized JSON response from Google
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete structure with fields code, body, and headers |
1C:Enterprise/OneScript code example
Token = "ya29.a0ATi6K2sWW_31WLH0d9aK0qk0HJ-UfyvZDcLeBbF5bLU7QH09Bx2pXAupIw40USQVaxXqsovItVSt9swWuPdBDSA0eFaVPE0CbaU2OLQlyrnITI1VVXgZ_Gx2R...";
Name = "TestCalendar";
Result = OPI_GoogleCalendar.CreateCalendar(Token, Name);
- Bash
- CMD/Bat
oint gcalendar CreateCalendar \
--token "***" \
--title "TestCalendar"
oint gcalendar CreateCalendar ^
--token "***" ^
--title "TestCalendar"
Result
{
"kind": "calendar#calendar",
"etag": "\"OvoGcEubzgWkie352nhebuNN51c\"",
"id": "6192befc4ccb3874515c223d4a54305be797ac9b4b52999998d4a73a3865eebb@group.calendar.google.com",
"summary": "TestCalendar",
"timeZone": "Europe/Moscow",
"dataOwner": "bayselonarrend@gmail.com",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}