Ping
Check your connection to Turbo.
The API will respond with
OK when your API key is correct and the server is up.
To find your Turbo API key, please visit
Settings > API in the Turbo dashboard.
Parameters
This endpoint has no parameters.
curl \
-X POST \
-d api_key=TURBO_API_KEY \
https://api.tur.bo/ping
<?php
$api_url ='https://api.tur.bo';
$api_path='/ping';
$api_key ='TURBO_API_KEY';
$fields =array( 'api_key'=>$api_key );
$opts =array( 'form_params'=>$fields );
try {
$client =new GuzzleHttp\Client( array( 'base_uri'=>$api_url ) );
$response=$client->post( $api_path,$opts );
$json =$response->getBody();
echo $json;
}
catch( Exception $e ) {
echo 'error = ',$e->getMessage(),"\n";
}
?>
#!/usr/bin/python
import requests
import json
api_url="https://api.tur.bo/ping"
result=requests.post( api_url,data="api_key=TURBO_API_KEY" )
print( json.dumps( result.json() ) )
#!/usr/bin/env ruby
require 'uri'
require 'net/http'
api_url="https://api.tur.bo/ping"
uri =URI( api_url )
result =Net::HTTP.post_form( uri,'api_key'=>'TURBO_API_KEY' )
puts result.body
{
"error":false,
"msg":"OK"
}
JSON response object |
Key |
Value |
error |
true or false depending on if an error has occurred in the API request |
msg |
OK if all is well, otherwise will include descriptive error text |