1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/Google_Calendar/Calendar-list-management/Add-calendar-to-list.md
T
Vitaly the Alpaca (bot) acef484801 Main build (Jenkins)
2024-10-09 09:42:00 +03:00

1.4 KiB

sidebar_position
sidebar_position
2

Add calendar to list

Adds an existing calendar to the user's list

Function AddCalendarToList(Val Token, Val Calendar) Export

Parameter CLI option Type Description
Token --token String Token
Calendar --calendar String Calendar ID

Returns: Map Of KeyAndValue - serialized JSON response from Google


    Token    = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
    Calendar = "e8a267e4a6629e0ef3f8a08ca54f52e2b031d3c40bd27d2866c2ed083c6353ec@group.calendar.google.com";

    Result = OPI_GoogleCalendar.AddCalendarToList(Token, Calendar);
    
  oint gcalendar AddCalendarToList --token %token% --calendar %calendar%

{
 "kind": "calendar#calendarListEntry",
 "etag": "\"1728454322437000\"",
 "id": "48ff105e488eea0a588031479250116f2e769f150c2ca1274b7e79c4b057b46b@group.calendar.google.com",
 "summary": "New name",
 "description": "New description",
 "timeZone": "Europe/Moscow",
 "colorId": "4",
 "backgroundColor": "#fa573c",
 "foregroundColor": "#000000",
 "selected": true,
 "accessRole": "owner",
 "defaultReminders": [],
 "conferenceProperties": {
  "allowedConferenceSolutionTypes": [
   "hangoutsMeet"
  ]
 }
}