While it is trivial to restrict the results to your own organization, oddly it is still a bit awkward to get your organizer id. Obviously you probably want your own events, not the entire worlds. In fact, their API is so easy to use you can actually pass in the anon key right in the URL.Īs an example, given that token represents your anon oath token, this will get all public events: '+token This means you can use the EventBrite API in a JavaScript app (desktop, mobile, hybrid, etc.) without worrying about keeping your key secret. Turns out, when you create an app on the EventBrite developer portal, you actually get both a regular OAuth token and secret as well as an anonymous oauth token:īy using the anonymous oath token, you can read any public data you want, all without having to use a secure key. (Unless you used a server to proxy the API calls for you of course.) But after speaking to Mitch Colleran from EventBrite, I was happy to discover I was wrong. This means it would not be possible to use the data on the client-side. At that time, I was under the impression that all uses of the EventBrite API required a private OAuth token. ![]() I think it is a simple problem, I just can't figure it out!Ĭonst initalEvents = await fetch(`$`) Īpp.js const eventbrite = new EventBrite() įor(let i = 0, l = eventsList.Almost a year ago I blogged about using the EventBrite API with ColdFusion. I now want to be able to show the venueName in the HTML template of ui.js. I've managed to get a venue's name through the venue ID that's found in the event information, and these are showing correctly in the console. So far I have been able to show information about the event, but I also want to show the venue name which uses a different method. ![]() I am creating a university project to display events that are happening in Leeds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |