1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
Vitaly the Alpaca (bot) 217c3b0626 Main build (Jenkins)
2024-09-29 21:40:58 +03:00

2.4 KiB

sidebar_position
5

Move event

Moves an event to another calendar

Function MoveEvent(Val Token, Val SourceCalendar, Val TargetCalendar, Val Event) Export

Parameter CLI option Type Description
Token --token String Token
SourceCalendar --from String ID of the source calendar
TargetCalendar --to String ID of the target calendar
Event --event String ID of the source calendar event

Returns: Map Of KeyAndValue - serialized JSON response from Google


    Token = "ya29.a0AcM612xw6IRwwkQIOEhizd2pJ6LLI4UAhdhxmXDGEzYkcfUPrLYgDDwbsSi5iQdc78WPs_1_Qor5KipuV6mAIvr6z-AKzrBaMT4erIR5T...";
    Event = "ro3gv4dokajnh90pcn58lel8e4";

    SourceCalendar = "e8a267e4a6629e0ef3f8a08ca54f52e2b031d3c40bd27d2866c2ed083c6353ec@group.calendar.google.com";
    TargetCalendar = "bayselonarrend@gmail.com";

    Result = OPI_GoogleCalendar.MoveEvent(Token, SourceCalendar, TargetCalendar, Event);
    
  oint gcalendar MoveEvent --token %token% --from %from% --to %to% --event %event%

{
 "kind": "calendar#event",
 "etag": "\"3455260702978000\"",
 "id": "nkeonu0b5b3flradhop3ist4vk",
 "status": "cancelled",
 "htmlLink": "https://www.google.com/calendar/event?eid=bmtlb251MGI1YjNmbHJhZGhvcDNpc3Q0dmsgYjA0MjAwMGYwYTRjYzU5ZTk2OWRkOTljZWMzNjk2ZmYwZDI2OWFhZTNkMWRhZjdmMjQ1N2RmMjg4ZmUzMzgzNUBn",
 "created": "2024-09-29T17:19:10Z",
 "updated": "2024-09-29T17:19:11.489Z",
 "summary": "New event",
 "description": "New event description",
 "location": "InOffice",
 "creator": {
  "email": "bayselonarrend@gmail.com"
 },
 "organizer": {
  "email": "bayselonarrend@gmail.com"
 },
 "start": {
  "dateTime": "2024-09-29T23:19:10+03:00",
  "timeZone": "Europe/Moscow"
 },
 "end": {
  "dateTime": "2024-09-30T00:19:10+03:00",
  "timeZone": "Europe/Moscow"
 },
 "iCalUID": "nkeonu0b5b3flradhop3ist4vk@google.com",
 "sequence": 0,
 "reminders": {
  "useDefault": true
 },
 "attachments": [
  {
   "fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg",
   "title": "Image1",
   "iconLink": ""
  },
  {
   "fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg",
   "title": "Image2",
   "iconLink": ""
  }
 ],
 "eventType": "default"
}