PingerFinger
PingerFinger RESTful API
Simple API is supporter for developing your own applications.
API endpoint is http://pingerfinger.com/api/
Example request: ping=1&url=http://exampleurl.com&name=Example
Example application using PHP and CURL:
Response codes are 200 on success or 400 on fail reason for fail can be only invalid url.
Response is also provided with output on success it will be "success" on fail it will be "invalid url".
API endpoint is http://pingerfinger.com/api/
Example request: ping=1&url=http://exampleurl.com&name=Example
Example application using PHP and CURL:
$name = "My cool website";
$url = "http://www.mycoolwebsite.com";
$postdata = "ping=1&url=$url&name=$name";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://pingerfinger.com/api/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
$output = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if($status == 200)
{
//do some stuff here
}
elseif($status == 400)
{
//do some other stuff here
}
else
{
//do some another stuff here
}
Response codes are 200 on success or 400 on fail reason for fail can be only invalid url.
Response is also provided with output on success it will be "success" on fail it will be "invalid url".
