Skip to content

Instantly share code, notes, and snippets.

@shreyas-satish
Last active August 29, 2015 14:20
Show Gist options
  • Save shreyas-satish/3d56a0c7a40a616d2a4d to your computer and use it in GitHub Desktop.
Save shreyas-satish/3d56a0c7a40a616d2a4d to your computer and use it in GitHub Desktop.
import requests
access_token = "xxx"
headers = {'Authorization': 'Bearer {0}'.format(access_token)}
# Get all events
event_list_url = "https://www.explara.com/api/e/get-all-events"
events = requests.post(event_list_url, headers=headers).json()
first_event = events.get('events')[0]
# Get attendee list
attendee_list_url = 'https://www.explara.com/api/e/attendee-list'
payload = {'eventId': first_event.get('eventId'), 'fromRecord': 0, 'toRecord': 100}
event_attendees = requests.post(attendee_list_url, headers=headers, data=payload).json()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment