List events
List non-deleted events, sorted by newest event first.
- Text
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
- Go
GET https://api-{region}.seatsio.net/events
More info: https://docs.seats.io/docs/api-pagination
$seatsioClient->events->listFirstPage(pageSize?)
$seatsioClient->events->listPageAfter(afterId, pageSize?)
$seatsioClient->events->listPageBefore(beforeId, pageSize?)
$seatsioClient->events->listAll();
/*
Some examples (for charts, but listing events works similarly):
https://github.com/seatsio/seatsio-php/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-php/blob/master/README.md#listing-all-charts
*/
await client.Events.ListFirstPageAsync(pageSize?)
await client.Events.ListPageAfterAsync(afterId, pageSize?)
await client.Events.ListPageBeforeAsync(beforeId, pageSize?)
client.Events.ListAllAsync();
/*
Some examples (for charts, but listing events works similarly):
https://github.com/seatsio/seatsio-dotnet/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-dotnet/blob/master/README.md#listing-all-charts
*/
client.events.listFirstPage(pageSize?)
client.events.listPageAfter(afterId, pageSize?)
client.events.listPageBefore(beforeId, pageSize?)
client.events.listAll();
/*
Some examples (for events, but listing events works similarly):
https://github.com/seatsio/seatsio-java/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-java/blob/master/README.md#listing-all-charts
*/
client.events.list_first_page(page_size?)
client.events.list_page_after(after_id, page_size?)
client.events.list_page_before(before_id, page_size?)
client.events.list()
"""
Some examples (for charts, but listing events works similarly):
https://github.com/seatsio/seatsio-python/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-python/blob/master/README.md#listing-all-charts
"""
client.events.list.first_page(page_size?)
client.events.list.page_after(after_id, page_size?)
client.events.list.page_before(before_id, page_size?)
client.events.list
# Some examples (for charts, but listing events works similarly):
# https://github.com/seatsio/seatsio-ruby/blob/master/README.md#listing-charts-page-by-page
# https://github.com/seatsio/seatsio-ruby/blob/master/README.md#listing-all-charts
client.events.listFirstPage(pageSize?)
client.events.listPageAfter(afterId, pageSize?)
client.events.listPageBefore(beforeId, pageSize?)
client.events.listAll();
/*
Some examples (for charts, but listing events works similarly):
https://github.com/seatsio/seatsio-js/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-js/blob/master/README.md#listing-all-charts
*/
page, err := client.Events.ListFirstPage()
page, err := client.Events.ListFirstPage(<optional shared.Pagination params>)
page, err := client.Events.ListPageAfter(event.Id)
page, err := client.Events.ListPageAfter(event.Id, <optional shared.Pagination params>)
page, err := client.Events.ListPageBefore(event.Id)
page, err := client.Events.ListPageBefore(event.Id, <optional shared.Pagination params>)
events, err := client.Events.ListAll()
page, err := client.Events.ListAll(<optional shared.Pagination params>)
/*
Some examples (for charts, but listing events works similarly):
https://github.com/seatsio/seatsio-go/blob/master/README.md#listing-charts-page-by-page
https://github.com/seatsio/seatsio-go/blob/master/README.md#listing-all-charts
*/
Note
The maximum number of events that can be retrieved in a single request is 20.
An example
curl https://api-{region}.seatsio.net/events \
-u aSecretKey:
{
"next_page_starts_after": 122,
"items": [
{
"id": 169,
"key": "anEvent",
"tableBookingConfig": {
"mode": "CUSTOM",
"tables": {
"T1": "BY_TABLE",
"T2": "BY_SEAT",
"T3": "BY_TABLE"
}
},
"chartKey": "4250fffc-e41f-c7cb-986a-2c5e728b8c28",
"isSeason": false,
"isTopLevelSeason": false,
"isPartialSeason": false,
"isEventInSeason": false,
"createdOn": "2017-05-05T10:58:44.715Z"
},
{
"id": 168,
"key": "anotherEvent",
"chartKey": "4150dddc-e41f-c7cb-986a-2c5e728b8c20",
"isSeason": false,
"isTopLevelSeason": false,
"isPartialSeason": false,
"isEventInSeason": false,
"createdOn": "2017-03-05T10:58:44.715Z",
"updatedOn": "2017-04-05T10:58:44.615Z"
}
...
]
}