APIs to create and manage events.
curl -i -X POST \
https://apis.spotnana.com/v2/events/6926658168/travelers/add \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"type": "GENERIC",
"userIds": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}'
{ "addedUserIds": [ { … } ] }
curl -i -X POST \
https://apis.spotnana.com/v2/events/6926658168/travelers/remove \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"type": "GENERIC",
"userIds": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}'
{ "removedUserIds": [ { … } ] }
Type of events
List events filters
Indicates from where in the list of events the server should start.
curl -i -X POST \
https://apis.spotnana.com/v2/events/list \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"listEventType": "UPCOMING",
"filters": [
{
"userFilter": {
"userId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
}
],
"offset": 2,
"limit": 2
}'
{ "events": [ { … } ], "paginationParams": { "totalNumResults": 0 } }