How to Use the Airbana API A quick start guide to adding Airsoft Info to your application
Using the Airbana API is simple...
The following Quick Start Guide is based on a PHP without using an API key
Airsoft DataFirst you need to decide what data you are going to work with.
The Airbana API allows you to retrieve a collection of Sites, details of an individual Site, a collection of Events or an individual Event.
For this example we'll be using a collection of events.
Your Return TypeAs mentioned on the front page the API can return data in 3 formats;
We'll be using PHP which means we need to use a file with .php at the end, in this case;
Processing the DataBy default events.php will return the next 7 days worth of events for the entire world.
For our example we are going to limit it to just the UK (Region 1) which means we need to pass the region parameter as follows;
In PHP we can request this data via CURL, unserialize it and then output it!
Done!Now that you've seen how easy it is to get the Airbana data into your appliactions I would recommend you read more about the parameters for the various parts of the API!
Sites Using the API Why not check out their website too..
Blog The latest Airbana news....
Contact Details Why not get in touch?
I'm always interested to hear what the Airsoft community thinks of Airbana and what it would like to see Airbana do next.
- +44 871 3096879
Airsoft News:Arnies Airsoft:
- Incoming: PTS Mega Arms MKM AR15 GBB
- EB Airsoft: Standalone GLs Coming Soon
- "G&G Makes You Better" Video
- Military1st: More Helikon Patriot Fleeces
- Wolf Armouries G&P & SRC Xmas Sale
- SI S4 Active & iPhone 5C Battle Cases
Arnies Popular Airsoft