Edit calendar
Edits properties of an existing calendar
Function EditCalendarMetadata(Val Token, Val Calendar, Val Name = "", Val Description = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
Calendar | --calendar | String | ✔ | Calendar ID |
Name | --title | String | ✖ | New name |
Description | --description | String | ✖ | New calendar description |
Returns: Map Of KeyAndValue - serialized JSON response from Google
1C:Enterprise/OneScript code example
Token = "ya29.a0AeDClZCuUGv3lVO8dyhcLNhY08vE-ingztWRKkv-QAvcs9f6z1x0StyUs2M2YRgdoHDpUUEeBm5wAfquh5Z2_afLxDoqTIrStzOWxDL66...";
Calendar = "2b27a0d8595a5f3da2e0a28bd781066b5f1e7243e7b902f682cf9b39fd97e257@group.calendar.google.com";
Name = "New name";
Description = "New description";
Result = OPI_GoogleCalendar.EditCalendarMetadata(Token, Calendar, Name, Description);
- Bash
- CMD/Bat
oint gcalendar EditCalendarMetadata \
--token "***" \
--calendar "2ca77011c7792135d21dc6e9978ed8d161a1e970c59bb464fe288faceab09443@group.calendar.google.com" \
--title "New name" \
--description "New description"
oint gcalendar EditCalendarMetadata ^
--token "***" ^
--calendar "2ca77011c7792135d21dc6e9978ed8d161a1e970c59bb464fe288faceab09443@group.calendar.google.com" ^
--title "New name" ^
--description "New description"
Result
{
"kind": "calendar#calendar",
"etag": "\"TKmlUu-rCWvGCZLbQ4hTqd8_K3U\"",
"id": "48ff105e488eea0a588031479250116f2e769f150c2ca1274b7e79c4b057b46b@group.calendar.google.com",
"summary": "New name",
"description": "New description",
"timeZone": "Europe/Moscow",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}