Last active
August 29, 2015 14:20
-
-
Save damienh/b5953e742aaeb2f7f32f to your computer and use it in GitHub Desktop.
EB API Request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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