Returns the user's future foodsharing dates as iCal.
GET
/api/calendar/{token}This includes pickups and meetings / events.
Authorizations
Parameters
Path Parameters
token*
Access token
Typestring
RequiredQuery 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.
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())