Get calendar
Gets calendar information by ID
- Parameters
- Advanced call ?
Function GetCalendarMetadata(Val Token, Val Calendar) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Calendar | --calendar | String | ✔ | Calendar ID |
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 HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "ya29.a0AT3oNZ89Gfvy6_DUg_tviJJnmBXSmGRrPL6Vym5gPCsPQEa3F606plSWJttyabLz5gHJY63An6XG9wKNlbVK4fkTSF_KNhqT5M6IGUm8THO6IWF0iGzg5z2SO...";
Calendar = "f70efec034ef36b040f12b5d8938e54fc399d73cd37b8e765bdd86ebc4a67e4a@group.calendar.google.com";
Result = OPI_GoogleCalendar.GetCalendarMetadata(Token, Calendar);
- Bash
- CMD/Bat
oint gcalendar GetCalendarMetadata \
--token "***" \
--calendar "bcdf6eac873743b53d1c46bf9f4d0e653f28d4593cdd7e65ffa94147253143a7@group.calendar.google.com"
oint gcalendar GetCalendarMetadata ^
--token "***" ^
--calendar "bcdf6eac873743b53d1c46bf9f4d0e653f28d4593cdd7e65ffa94147253143a7@group.calendar.google.com"
Result
{
"kind": "calendar#calendar",
"etag": "\"dZorxPnt75Fp6jqGt1iCRxhNGlI\"",
"id": "bf3554ca10c7566b558c16e680b566d4b734cf70055092b2a3737f80d81eea56@group.calendar.google.com",
"summary": "New name",
"description": "New description",
"timeZone": "Europe/Moscow",
"dataOwner": "bayselonarrend@gmail.com",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}