looking for some solutions? You are welcome.

SOLVED: Eventbrite - Search Events of a person by Email


Use Case: I would like to retrieve all events past/upcoming that a particular person has attended/will be attending. The search criterion for this person is his/her email.

I'm looking through the Eventbrite API and there isn't any method for that. However, I've come up with a workaround and this is what it looks like.

List all Events by Organization  (https://www.eventbriteapi.com/v3/organizations/organization_id/events)

For each event
   List all Attendees (https://www.eventbriteapi.com/v3/events/event_id/attendees)
      For each attendee
          if email is present (email is part of the attendee profile)
              add event to event array

Theoretically I see that this would work although this would be relatively inefficient. Are there any other more efficient ways of doing this?

Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots

No comments: