Skip to content

Instantly share code, notes, and snippets.

@damienh
Last active August 29, 2015 14:20
Show Gist options
  • Save damienh/b5953e742aaeb2f7f32f to your computer and use it in GitHub Desktop.
Save damienh/b5953e742aaeb2f7f32f to your computer and use it in GitHub Desktop.
EB API Request
auth = "Bearer OMITTED"
response = HTTParty.post("https://www.eventbriteapi.com/v3/events", body: {:event => {
:name => {
:html => "Event Name"
},
:organizer_id => "6272138773",
:start => {
:timezone => "America/Los_Angeles",
:utc => "2015-05-12T02:00:00Z",
},
:end => {
:timezone => "America/Los_Angeles",
:utc => "2015-05-12T02:00:00Z",
},
:description => "event discription here",
:status => "live",
:currency => "GBP"} }.to_json, headers: { "Authorization" => auth } )
This gives me status 200 but it doesnt create the event. I believe im using the right end point for creating an event.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment