Move event
Moves an event to another calendar
Function MoveEvent(Val Token, Val SourceCalendar, Val TargetCalendar, Val Event) Export
Parameter | CLI option | Type | Required | 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
1C:Enterprise/OneScript code example
Token = "ya29.a0AeDClZCuUGv3lVO8dyhcLNhY08vE-ingztWRKkv-QAvcs9f6z1x0StyUs2M2YRgdoHDpUUEeBm5wAfquh5Z2_afLxDoqTIrStzOWxDL66...";
Event = "hnn78as8l9l4ra0gmphc8ho9r4";
SourceCalendar = "2b27a0d8595a5f3da2e0a28bd781066b5f1e7243e7b902f682cf9b39fd97e257@group.calendar.google.com";
TargetCalendar = "bayselonarrend@gmail.com";
Result = OPI_GoogleCalendar.MoveEvent(Token, SourceCalendar, TargetCalendar, Event);
- Bash
- CMD/Bat
oint gcalendar MoveEvent \
--token "***" \
--from "b7e551a60ae28c9276e7c28496e50a2f391ca5eedc1cffdb9bc672e328453911@group.calendar.google.com" \
--to "bayselonarrend@gmail.com" \
--event "vgmqjkl2cmr8ujtfn1jmtelmr4"
oint gcalendar MoveEvent ^
--token "***" ^
--from "b7e551a60ae28c9276e7c28496e50a2f391ca5eedc1cffdb9bc672e328453911@group.calendar.google.com" ^
--to "bayselonarrend@gmail.com" ^
--event "vgmqjkl2cmr8ujtfn1jmtelmr4"
Result
{
"kind": "calendar#event",
"etag": "\"3456908680754000\"",
"id": "7rfbn0fb8nai4i7v4l435tgl1c",
"status": "cancelled",
"htmlLink": "https://www.google.com/calendar/event?eid=N3JmYm4wZmI4bmFpNGk3djRsNDM1dGdsMWMgNjA2MTNkNTNjNDY3MGFiZGNlZWMzZTc2OTNjYTQ3NWIwZTg4ZGMxNjc4ZGI3MjEwNTIxMzU2YjQ5NDBhNjE0OEBn",
"created": "2024-10-09T06:12:19Z",
"updated": "2024-10-09T06:12:20.377Z",
"summary": "New event",
"description": "New event description",
"location": "InOffice",
"creator": {
"email": "bayselonarrend@gmail.com"
},
"organizer": {
"email": "bayselonarrend@gmail.com"
},
"start": {
"dateTime": "2024-10-09T12:12:19+03:00",
"timeZone": "Europe/Moscow"
},
"end": {
"dateTime": "2024-10-09T13:12:19+03:00",
"timeZone": "Europe/Moscow"
},
"iCalUID": "7rfbn0fb8nai4i7v4l435tgl1c@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"
}