python - How can I get only specified fields back from Eventbrite API -
i working on python script pull of live events eventbrite , export attendees first , last name, date of birth , e-mail address.
however, being new both python , eventbrite api struggling how fields need directly api.
so far have managed list of events looking using 1 of code examples provided eventbrite, , have managed participant list event using event id sourced eventbrite api.
i have included code have pulled far:
from eventbrite import eventbrite # token hard coded in eventbrite = eventbrite('mytoken') my_id = eventbrite.get_user()['id'] event_response = eventbrite.event_search(**{'user.id': my_id}) # event id hard coded in @ moment want iterate # once have list of event id's attendees_response = eventbrite.get_event_attendees("eventid") print("event") print(event_response) # debugging purposes print("attendees") print(attendees_response)
the part struggling work out how specify want event id returned (that way can store them in list) when event search , how specify want attendees first name, last name, dob, , e-mail address when build attendees list.
Comments
Post a Comment