calendar-integrations
9 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
External calendar accounts this person has connected#
GET
/calendar/accountsTokenAntworten
- 200Accounts returned, never their tokens
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/calendar/accounts" \
-H "Authorization: Bearer $XISUITE_TOKEN"Disconnect an account; calendars keep their entries and stop syncing#
DELETE
/calendar/accounts/{id}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Account UUID |
Antworten
- 200Account disconnected
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/calendar/accounts/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"The calendars that account can offer#
GET
/calendar/accounts/{id}/calendarsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Account UUID |
Antworten
- 200External calendars returned
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/calendar/accounts/{id}/calendars" \
-H "Authorization: Bearer $XISUITE_TOKEN"Where to send the person to connect an outside calendar#
GET
/calendar/accounts/connect/{provider}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
providerPflicht | Pfad | string | google, microsoft or calendly |
return_toPflicht | Query | string | – |
Antworten
- 200Sign-in address returned
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/calendar/accounts/connect/{provider}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Connect an Apple or other published calendar by its link#
POST
/calendar/accounts/icsTokenRequest-Body
| Name | Typ | Beschreibung |
|---|---|---|
urlPflicht | string | The published calendar link, https:// or webcal:// |
name | string | What to call it |
Antworten
- 201Link accepted and stored
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/calendar/accounts/ics" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"url":"…"}'Link a calendar to an external one#
PUT
/calendar/calendars/{id}/syncTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Calendar UUID |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
account_idPflicht | string | A calendar account this person connected |
external_calendar_idPflicht | string | Which calendar at the provider |
direction | string | Import brings changes in only; two_way also sends ours out Werte: |
Antworten
- 200Linked
- 400That external calendar is already linked here
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/calendar/calendars/{id}/sync" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"account_id":"…","external_calendar_id":"…"}'Stop syncing; imported entries stay#
DELETE
/calendar/calendars/{id}/syncTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Calendar UUID |
Antworten
- 200Unlinked
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/calendar/calendars/{id}/sync" \
-H "Authorization: Bearer $XISUITE_TOKEN"Bring changes in now#
POST
/calendar/calendars/{id}/sync/runTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Calendar UUID |
Antworten
- 201Counts of what came in and what was removed
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/calendar/calendars/{id}/sync/run" \
-H "Authorization: Bearer $XISUITE_TOKEN"Entries brought in from connected calendars the caller may read#
GET
/calendar/integrations/recordsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
page | Query | number | – |
limit | Query | number | – |
provider | Query | string | Werte: |
status | Query | string | Werte: |
calendar_id | Query | string | Only entries of this calendar |
q | Query | string | Matches the title or the calendar name |
sort | Query | string | Column to sort by; newest change first when left out Werte: |
dir | Query | string | Werte: |
Antworten
- 200One page of imported entries, newest change first
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/calendar/integrations/records" \
-H "Authorization: Bearer $XISUITE_TOKEN"