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) 6baf87b203 Main build (Jenkins)
2024-10-13 01:45:32 +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.a0AcM612w6SWzMf3Ti1dSiFdgdLdXxLBjzKdXoLGuGDHoSXzb0uAKe5hJ-HPz1Njyp7HuHE6NnMnevQwbo0AR-yPAwfrA1OsMFZ_Fac2ASn...";
    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"
  ]
 }
}