Skip to content

Returns the user's future foodsharing dates as iCal.

GET
/api/calendar/{token}

This includes pickups and meetings / events.

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

token*

Access token

Typestring
Required

Query Parameters

formatting

How to format description texts

Typestring
events

Include all or only answered invitations to events

Typestring
pickups

Whether to include pickups

Typestring
history

Whether to include some past events

Typestring

Responses

Success.
Authorization
api_key
Variables
Key
Value
token*
formatting
events
pickups
history
cURL
curl -X GET \
'http://localhost/api/calendar/{token}'

Samples

cURL
curl -X GET http://localhost/api/calendar/{token}
JavaScript
fetch("http://localhost/api/calendar/{token}")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/calendar/{token}");
Python
import requests
response = requests.get("http://localhost/api/calendar/{token}")
print(response.json())