2024-06-05 12:19:46 +02:00
|
|
|
---
|
|
|
|
sidebar_position: 5
|
|
|
|
---
|
|
|
|
|
|
|
|
# Move event
|
|
|
|
Moves an event to another calendar
|
|
|
|
|
|
|
|
|
2024-07-10 10:59:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
*Function MoveEvent(Val Token, Val SourceCalendar, Val TargetCalendar, Val Event) Export*
|
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Destination |
|
|
|
|
|-|-|-|-|
|
|
|
|
| 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 |
|
|
|
|
|
|
|
|
|
2024-06-06 14:33:52 +02:00
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
2024-06-05 12:19:46 +02:00
|
|
|
|
2024-07-10 10:59:55 +02:00
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
```bsl title="Code example"
|
|
|
|
|
|
|
|
Response = OPI_GoogleCalendar.MoveEvent(Token, "bayselonarrend@gmail.com", "55868c32be16935f0...", "j4nonfcc0m2..."); //Map
|
|
|
|
Response = OPI_Tools.JSONString(Response); //String
|
|
|
|
|
|
|
|
```
|
2024-07-10 10:59:55 +02:00
|
|
|
|
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
|
|
|
|
oint gcalendar MoveEvent --token %token% --from %from% --to %to% --event %event%
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-07-10 10:59:55 +02:00
|
|
|
{
|
2024-06-05 12:19:46 +02:00
|
|
|
"eventType": "default",
|
|
|
|
"attachments": [
|
|
|
|
{
|
|
|
|
"iconLink": "",
|
|
|
|
"title": "Image2",
|
|
|
|
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"iconLink": "",
|
|
|
|
"title": "Image1",
|
|
|
|
"fileUrl": "https://opi.neocities.org/assets/images/logo_long-e8fdcca6ff8b32e679ea49a1ccdd3eac.png"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"reminders": {
|
|
|
|
"useDefault": true
|
|
|
|
},
|
|
|
|
"sequence": 0,
|
|
|
|
"start": {
|
|
|
|
"timeZone": "Europe/Minsk",
|
|
|
|
"dateTime": "2024-02-24T16:20:49+03:00"
|
|
|
|
},
|
|
|
|
"creator": {
|
|
|
|
"self": true,
|
|
|
|
"email": "bayselonarrend@gmail.com"
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"timeZone": "Europe/Minsk",
|
|
|
|
"dateTime": "2024-02-24T17:20:49+03:00"
|
|
|
|
},
|
|
|
|
"iCalUID": "f9kkj2omsqtt67g12qh2jig8uk@google.com",
|
|
|
|
"description": "TestEventDescription",
|
|
|
|
"updated": "2024-02-24T10:20:51.234Z",
|
|
|
|
"created": "2024-02-24T10:20:49.000Z",
|
|
|
|
"htmlLink": "https://www.google.com/calendar/event?eid=Zjlra2oyb21zcXR0NjdnMTJxaDJqaWc4dWsgYmF5c2Vsb25hcnJlbmRAbQ",
|
|
|
|
"location": "InOffice",
|
|
|
|
"summary": "New event",
|
|
|
|
"organizer": {
|
|
|
|
"self": true,
|
|
|
|
"email": "bayselonarrend@gmail.com"
|
|
|
|
},
|
|
|
|
"status": "confirmed",
|
|
|
|
"id": "f9kkj2omsqtt67g12qh2jig8uk",
|
|
|
|
"etag": "\"3417540102468000\"",
|
|
|
|
"kind": "calendar#event"
|
|
|
|
}
|
|
|
|
```
|