Module eventbrite - mymagic/open_hub GitHub Wiki
Eventbrite module not only allows you to sync your events from eventbrite, but also others actor's events into OpenHub. Data such as events, registration, attendance are sync and handle in this module.
Webhook
Step 1: Acquire API Key from Eventbrite
- Login Eventbrite, goto
Account Settings -> Developer Links -> API Keys
-
Click Create API Keys button
-
Fill up details:
- Application URL: https://openhub.mymagic.my
- Application Name: OpenHub
- Application Description: Webhook between my eventbrite account and OpenHub
- Click Create Key
- Click 'Show API key, client secret and tokens' on this created API
- Copy the Private token, this will be your Eventbrite OAUTH Secret
Step 2: Setup Webhooks in Eventbrite
- Login Eventbrite, goto
Account Settings -> Developer Links -> Webhooks
- You will need to create 2 webhooks here that this OpenHub eventbrite module supported:
when event created & updated
- Payload URL: Insert
https://openhub.mymagic.my/eventbrite/callback/eventChanges
- Event: Select
All Event
- make sure you checked
event.created
,event.updated
,event.published
,event.unpublished
,organizer.updated
,venue.updated
too
when registration and attendance created & updated
- Payload URL: Insert
https://openhub.mymagic.my/eventbrite/callback/attendeeChanges
- Event: Select
All Event
- make sure you checked
attendee.updated
,attendee.checked_in
(barcode.checked_in
),attendee.checked_out
(barcode.un_checked_in
) too
Step 3: Setup Webhooks in OpenHub
You will be linking your eventbrite account with your organization record in OpenHub. Once done, event created/updated as well as registration made, attendance taken will be automatically sync to your OpenHub using a method called web callback. OpenHub will auto set the correct organization owner and role base this registry.
- Go to OpenHub backend:
Event -> Sync from Eventbrite
- Click
Manage Webhooks
button to register a new webhook
- Insert Organization Code (an UUID which looks something like this
bd1df76d-5490-4562-a8ca-ed1a8cb3f422
) - Insert the
Private Token
you copied inStep 1
intoEventbrite OAUTH Secret
- You will need your eventbrite Account Id. You can acquired it from eventbrite:
- Click
Test
button one of the created webhooks in eventbrite - Wait for a minute
- Once callback is done, don't worry about its fail error, expands the section for detail. You can then extract the
user_id
out. e.g. In this case, 107038522227
- Click
Request Payload
{
"api_url": "https://www.eventbriteapi.com/v3/events/101621827622/",
"config": {
"action": "event.updated",
"endpoint_url": "https://central.mymagic.my/eventbrite/callback/eventUpdate",
"user_id": "107038522227",
"webhook_id": "1750814"
}
}
- If you setup everything correctly, at OpenHub Backend
Event -> Sync from Eventbrite
, you should see your organizations display in the list. Click on it and you should see the list of events available in your eventbrite account.