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/Get-calendar-list.md
T
Vitaly the Alpaca (bot) e21120ad74 Main build (Jenkins)
2024-10-13 02:26:42 +03:00

5.0 KiB

sidebar_position
sidebar_position
1

Get list of calendars

Gets an array of account calendars

Function GetCalendarList(Val Token) Export

Parameter CLI option Type Description
Token --token String Token

Returns: Map Of KeyAndValue - Array of calendar data mappings


    Token  = "ya29.a0AcM612zmTq3HijDy5D8xu-llkoj4aTlkgkrZ4LGSZcpCOnX1Z6xu9IsTLXFZSJu8uVsYxHj0ih5glQrF0yWTomhAPTGm1M9Kk7ZvYIwpm...";
    Result = OPI_GoogleCalendar.GetCalendarList(Token);
    
  oint gcalendar GetCalendarList --token %token%

[
 {
  "kind": "calendar#calendarListEntry",
  "etag": "\"1713008096300000\"",
  "id": "bayselonarrend@gmail.com",
  "summary": "Тестовый календарь (изм.)",
  "description": "ТестовоеОписание",
  "timeZone": "Europe/Minsk",
  "colorId": "19",
  "backgroundColor": "#fffff0",
  "foregroundColor": "#000000",
  "accessRole": "owner",
  "defaultReminders": [],
  "notificationSettings": {
   "notifications": [
    {
     "type": "eventCreation",
     "method": "email"
    },
    {
     "type": "eventChange",
     "method": "email"
    },
    {
     "type": "eventCancellation",
     "method": "email"
    },
    {
     "type": "eventResponse",
     "method": "email"
    }
   ]
  },
  "primary": true,
  "conferenceProperties": {
   "allowedConferenceSolutionTypes": [
    "hangoutsMeet"
   ]
  }
 },
 {
  "kind": "calendar#calendarListEntry",
  "etag": "\"1720626834830000\"",
  "id": "ab71c432a2cd06ecad2f5c517b3540f04d56df7aadb6df1d7b001ea4d6ac4398@group.calendar.google.com",
  "summary": "Тестовый календарь (изм.)",
  "description": "Тестовое описание",
  "timeZone": "Europe/Moscow",
  "colorId": "6",
  "backgroundColor": "#ffd800",
  "foregroundColor": "#000000",
  "accessRole": "owner",
  "defaultReminders": [],
  "conferenceProperties": {
   "allowedConferenceSolutionTypes": [
    "hangoutsMeet"
   ]
  }
 },
 {
  "kind": "calendar#calendarListEntry",
  "etag": "\"1720626835116000\"",
  "id": "c1aa2a1fe0ac12393b65eab12294daf3a09c12d5b7e54571774ddc001c4de938@group.calendar.google.com",
  "summary": "\\u0422\\u0435\\u0441\\u0442\\u043e\\u0432\\u044b\\u0439 \\u043a\\u0430\\u043b\\u0435\\u043d\\u0434\\u0430\\u0440\\u044c",
  "timeZone": "Europe/Moscow",
  "colorId": "5",
  "backgroundColor": "#ff7537",
  "foregroundColor": "#000000",
  "selected": true,
  "accessRole": "owner",
  "defaultReminders": [],
  "conferenceProperties": {
   "allowedConferenceSolutionTypes": [
    "hangoutsMeet"
   ]
  }
 },
 {
  "kind": "calendar#calendarListEntry",
  "etag": "\"1720626835376000\"",
  "id": "ru.by#holiday@group.v.calendar.google.com",
  "summary": "Праздники Беларуси",
  "description": "Праздники и памятные даты Беларуси",
  "timeZone": "Europe/Minsk",
  "colorId": "8",
  "backgroundColor": "#16a765",
  "foregroundColor": "#000000",
  "selected": true,
  "accessRole": "reader",
  "defaultReminders": [],
  "conferenceProperties": {
   "allowedConferenceSolutionTypes": [
    "hangoutsMeet"
   ]
  }
 },
 {
  "kind": "calendar#calendarListEntry",
  "etag": "\"1720626835701000\"",
  "id": "b0b7ceee4056c516b0718eed0a1e4ad8694259935a6d2ffc056325df06232841@group.calendar.google.com",
  "summary": "Тестовый календарь (изм.)",
  "description": "Тестовое описание",
  "timeZone": "Europe/Moscow",
  "colorId": "6",
  "backgroundColor": "#ffd800",
  "foregroundColor": "#000000",
  "accessRole": "owner",
  "defaultReminders": [],
  "conferenceProperties": {
   "allowedConferenceSolutionTypes": [
    "hangoutsMeet"
   ]
  }
 },
 {
  "kind": "calendar#calendarListEntry",
  "etag": "\"1720626835924000\"",
  "id": "25f80e38669312d27a9c7441f065887c6beaacf63af84ea67ebd9251a6b5f32b@group.calendar.google.com",
  "summary": "Тестовый календарь (изм.)",
  "description": "Тестовое описание",
  "timeZone": "Europe/Moscow",
  "colorId": "6",
  "backgroundColor": "#ffd800",
  "foregroundColor": "#000000",
  "accessRole": "owner",
  "defaultReminders": [],
  "conferenceProperties": {
   "allowedConferenceSolutionTypes": [
    "hangoutsMeet"
   ]
  }
 },
 {
  "kind": "calendar#calendarListEntry",
  "etag": "\"1720626836240000\"",
  "id": "36c14edd62c430b5646cbcaecfc67ee7fe7252d1d315ba3b099efca66084f7ff@group.calendar.google.com",
  "summary": "Тестовый календарь (изм.)",
  "description": "Тестовое описание",
  "timeZone": "Europe/Moscow",
  "colorId": "11",
  "backgroundColor": "#fbe983",
  "foregroundColor": "#000000",
  "selected": true,
  "accessRole": "owner",
  "defaultReminders": [],
  "conferenceProperties": {
   "allowedConferenceSolutionTypes": [
    "hangoutsMeet"
   ]
  }
 },
...