How to use DriveBird Network API service?

A simple way to implement

DriveBird Network - banner

Welcome to API service

We are providing some external service via API. You can navigate all of them using menu bar. Description, terms of service and example can be found on that page. Use the following API URL to communicate with our API server.

Only POST method accepted.
Request type must be: Application/x-www-form-urlencoded and return type is JSON.            

If you are using PHP to communicate with our API service, you may use the following example:

Include the following function
function postData($postUrl, $dataArr)
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $postUrl);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($dataArr));
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	$server_output = curl_exec($ch);
	return $server_output;

Now access the API using the above method. For example, you can try our DriveMail service by clicking here.

You will get data with JSON format. Three keys will be always present.

    Response master keys:
  1. status (inteager): By using status code you will know if you your request was success or error.
  2. error (numeric array): List of errors if occurred.
  3. data (object): All relative data as a response of your request.

API status and explanation

The status can be divide into two section. One is common and other one is request (application) specific. Please see below for common status codes. Application specific code status can be found on application API page.

status code Details regarding status code
200 No error occurred. You have your requested data in the data parameter.
400 Your requested parameter or structure is wrong.
401 You are not authorized to access. Please check your access key and access token.
403 Forbidden, we can not provide data for the request.
404 Request success but there is no data to provide.
500 Something went wrong in server side. Try again later or contact us.
503 Service is unavailable, may be in development mode.

For more details about the code visit RestAPITutorial website.

API test and debug

Use the form below to test or debug your API function.

Master keys Argument keys Value

This is a basic form to test/debug API services. Please note that some of our API service takes argument as child of arg key. To test that please create your own function as mention above. For more details and debug visit Home and write us via contact form.