Thursday 27 February 2014

Free QR API

Free QR API .

With this API you can insert a QR in your web page.

To call this API and obtain your QR you only need to get this url:

http://devel.farebookings.com/api/qr/{param}

Example:

get QR for "This is my example data":
http://devel.farebookings.com/api/qr/This is my example data

PHP usage;

 <?php
$data = "This is my example data";
echo curl("devel.farebookings.com/api/qr/".$data);

function curl($url) {
            $ch = curl_init();
            $timeout = 0;
            curl_setopt ($ch, CURLOPT_URL, $url);
            curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt ($ch, CURLOPT_USERAGENT , "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)");
            curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
            $data = curl_exec($ch);
            curl_close($ch);
            return $data;
}

?>



Raul Torrico.
Web developer.
Farebookings.com

Tuesday 25 February 2014

Free QR locate google maps address API.

Free QR API locate google maps address.

With this API you can insert a QR in your web page that redirects to a google address.
For example, if you want to get any writed address, now is not necesary rewrite in your mobile device to find or navigate to this address. The only you need is scan this QR and mobile device gets the correct address.

To call this API and obtain your QR you only need to get this url:

http://devel.farebookings.com/api/qrlocator/{address}

Example:

get QR for Leeds:
http://devel.farebookings.com/api/qrlocator/Leeds

get QR for Luton airport:
http://devel.farebookings.com/api/qrlocator/Luton airport

PHP usage;

 <?php
$address = "Leeds";
echo curl("devel.farebookings.com/api/qrlocator/".$address);

function curl($url) {
            $ch = curl_init();
            $timeout = 0;
            curl_setopt ($ch, CURLOPT_URL, $url);
            curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt ($ch, CURLOPT_USERAGENT , "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)");
            curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
            $data = curl_exec($ch);
            curl_close($ch);
            return $data;
}

?>



Raul Torrico.
Web developer.
Farebookings.com

Monday 17 February 2014

FREE Airport Information API.

This API has been developed to provide usefull Airports information. It's totally free.

To work, you must provide an correct IATA AIRPORT CODE, and you will get a good information about this Airport, like geoposition, name in different languages, etc...
Call this API is very easy.

Call API method:  
http://devel.farebookings.com/api/airportinfo/(iata_code)

The result will be returned in json format. To get info from Luton Airport do in this way: http://devel.farebookings.com/api/airportinfo/LTN

I hope this tool be usefull for you.


Raul Torrico.
Web developer.
Farebookings.com