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-metadata-management/Create-calendar.md
T
Vitaly the Alpaca (bot) acef484801 Main build (Jenkins)
2024-10-09 09:42:00 +03:00

1.1 KiB

sidebar_position
sidebar_position
1

Create calendar

Creates an empty calendar

Function CreateCalendar(Val Token, Val Name) Export

Parameter CLI option Type Description
Token --token String Token
Name --title String Name of the created calendar

Returns: Map Of KeyAndValue - serialized JSON response from Google


    Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
    Name  = "TestCalendar";

    Result = OPI_GoogleCalendar.CreateCalendar(Token, Name);
    
  oint gcalendar CreateCalendar --token %token% --title %title%

{
 "kind": "calendar#calendar",
 "etag": "\"f-Xduc312TYuzWZZ-yIpBJJfeyo\"",
 "id": "60613d53c4670abdceec3e7693ca475b0e88dc1678db7210521356b4940a6148@group.calendar.google.com",
 "summary": "TestCalendar",
 "timeZone": "Europe/Moscow",
 "conferenceProperties": {
  "allowedConferenceSolutionTypes": [
   "hangoutsMeet"
  ]
 }
}