The Cibul API allows you to retrieve event data from the platform as well as publish your own events. To do so, you will need to create your own cibul account if you haven't already done so.
The Cibul API can be used to retrieve detailed event content available on the Cibul Platform in the json format.
Here is a little walkthrough to get you started:
First of all, if you haven't already done so, create a cibul account to your name.
Then you'll need an api key. Go to your account settings page (when you logged on the site with your cibul account, you can get there by clicking on your profile on the header of the site) and go to the Api tab to generate one.
With your api key, you are now ready to fetch content. There are two ways to achieve this:
You are done. Check the sidebar links for details.
The Api can be used to create, edit and delete events, locations and programs.
An authentication process needs to be followed, which follows the 2-legged form of the OAuth 2.0 standard: Using a secret key (which you never ever share with anyone), you start by getting an access token which you then attach to your requests to authenticate them.
Generating your own secret key from your cibul account is a feature that is activated by sending a request at the following email: email@example.com
Once you have a valid access token, you can either handle locations, events or programs. Keep the following in mind:
Before publishing events, you will need to create the locations at which they will take place and use their uids as reference.
If you need to test the api, remember not to publish the events you are creating as they will be directly visible to the public on the platform.
There is a limitation of 100 event creations per day set mainly for security purposes. Contact us if you think you will need to publish more.
If you need to exploit the api a bit heavily (like publishing hundreds of events), we'd appreciate it if you ran your scripts during low traffic periods (night time).
To get you started, we suggest you
Start by reading the Authentication section to see how you can get a valid access token
Move on to the Locations section to create a bunch of locations which you will then use to create your events (keep track of their uids!)
Create your first event following the data structure detailed in the Events section
And optionnally, register your newly created event to one of your programs by following the Programs section