Remove calendar from list
Removes a calendar from the user's list
- Parameters
- Advanced call ?
Function DeleteCalendarFromList(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 structure with fields code, body, and headers |
1C:Enterprise/OneScript code example
Token = "ya29.a0ATi6K2sWW_31WLH0d9aK0qk0HJ-UfyvZDcLeBbF5bLU7QH09Bx2pXAupIw40USQVaxXqsovItVSt9swWuPdBDSA0eFaVPE0CbaU2OLQlyrnITI1VVXgZ_Gx2R...";
Calendar = "f70efec034ef36b040f12b5d8938e54fc399d73cd37b8e765bdd86ebc4a67e4a@group.calendar.google.com";
Result = OPI_GoogleCalendar.DeleteCalendarFromList(Token, Calendar);
- Bash
- CMD/Bat
oint gcalendar DeleteCalendarFromList \
--token "***" \
--calendar "05ae3c4997ac6c5444decaba8005fde21de546aca5b7e7faad30d84ad45e015c@group.calendar.google.com"
oint gcalendar DeleteCalendarFromList ^
--token "***" ^
--calendar "05ae3c4997ac6c5444decaba8005fde21de546aca5b7e7faad30d84ad45e015c@group.calendar.google.com"
Result
{
"error": {
"errors": [
{
"domain": "calendar",
"reason": "cannotUnsubscribeFromOwnedCalendar",
"message": "Data owner of a calendar cannot remove calendar list entry for that calendar."
}
],
"code": 403,
"message": "Data owner of a calendar cannot remove calendar list entry for that calendar."
}
}