Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Many sites include a list of upcoming events near the visitor based on geolocation of the visitor’s IP address. The Events / Index endpoint accepts several different options for location but the recommended one is to send lat and lon of the visitor along with a within radius for the venues.

Upcoming Events within 20 miles of Las Vegas via cURL
curl -i \
-X GET \
-H "X-Signature: 5tsKHA+v8xm3HPPqcG9rNhu7+GqYB4N77tTk7tr/FKQ=" \
-H "X-Token: SabreHackathon:TTX2017LasVegasNV" \
--url 'https://api.sandbox.ticketevolution.com/v9/events?lat=36.1207804&lon=-115.156559&order_by=events.occurs_at&page=1&per_page=10&within=20'
Events within 20 miles of Las Vegas using ticketevolution-php
$response = $client->listEvents([
    'page      => 1,
    'per_page  => 10,
    'lat       => 36.1207804,
    'lon       => -115.156559,
    'within    => 20,
    'order_by' => 'events.occurs_at',
]));
Events within 20 miles of Las Vegas using ticketevolution-ruby
@event = @connection.events.list({
    'page      => 1,
    'per_page  => 10,
    'lat       => 36.1207804,
    'lon       => -115.156559,
    'within    => 20,
    'order_by' => 'events.occurs_at',
})

Next: Performer Landing Pages

  • No labels