You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
111 lines
3.0 KiB
Plaintext
111 lines
3.0 KiB
Plaintext
---
|
|
sidebar_position: 5
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# 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
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "ya29.a0AcM612zdAe2M8Ywdxt7xmK1VAAj2m3yjTdP1Ap8cFmqbE8lVngjIAujPtjc_c94MCuKNLfn7MSssBd6NfMXDQDrHMUv7Fgjp7cjuXk68n...";
|
|
Event = "33cn8ioc097i92k9i37mvpbj50";
|
|
|
|
SourceCalendar = "2cd4d2b5dc7a898d4f1d65956b5ccca32841aff4a1603b373ff14db442ac9fab@group.calendar.google.com";
|
|
TargetCalendar = "bayselonarrend@gmail.com";
|
|
|
|
Result = OPI_GoogleCalendar.MoveEvent(Token, SourceCalendar, TargetCalendar, Event);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint gcalendar MoveEvent \
|
|
--token "***" \
|
|
--from "a5e91f8b4c17d0f8a619a0673dcc9b970a14a9e0feac4058a3a5029f00e44e59@group.calendar.google.com" \
|
|
--to "bayselonarrend@gmail.com" \
|
|
--event "m6o87opari576961a31er6n5pc"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint gcalendar MoveEvent ^
|
|
--token "***" ^
|
|
--from "a5e91f8b4c17d0f8a619a0673dcc9b970a14a9e0feac4058a3a5029f00e44e59@group.calendar.google.com" ^
|
|
--to "bayselonarrend@gmail.com" ^
|
|
--event "m6o87opari576961a31er6n5pc"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="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"
|
|
}
|
|
```
|