cabennett85/gittest — Issue #715: EventBrite: NPO with an existing EventBrite account can create an event
Author: cabennett85
Created: 2012-03-02 00:11:02+00:00
State: open

User scenario: "Admin is on BC dashboard. Admin sees a button to add an event and clicks it. Admin hasn't linked the BC account with the EB account yet, so we prompt the admin with an email/pass login screen with the email prepopulated. After linking, we take the admin to the create event page where they enter the event name, start/end dates, and information for 1 ticket (they can add more later). Admin clicks submit and is taken to their event page on BC."

We'll have to use the event_new, ticket_new and venue_new functions to create the event, the tickets, and the venue. Let's start with creating the events, then the tickets, we can leave the venues for last.

We'll be asking EventBrite for additional API that let's us query to see what the tickets are for a particular event, etc., but we may want to store that on our end as well esp. for now since they won't have that for us immediately.

To log the admin in to their EventBrite account, we'd have to ask for their email and password with the email field prepopulated (they can still change the email if they'd like). We can do this either in registration or from the dashboard.

We need to use the user_get function (http://developer.eventbrite.com/doc/users/user_get/) to get their user_key (it's like an access token), and save the user_id and user_key in the database.

The authorization parameters that we need to pass are listed here: http://developer.eventbrite.com/doc/auth/. In other words, we need to pass the following three things:

{{{
1. app_key = MThmYTI4NDk5ODlm
2. email
3. password
}}}

Once we have the user_key, we can just use that for auth instead of email/pass so we don't need to save the password.