Set your default language: PHP | Curl

DELETE pings/:id

Delete the given Ping.

Details

URL https://api.heello.com/pings/:id
Requires Authentication Yes
Rate Limited Yes
Response Formats json

Parameters

Parameter Required Notes
access_token Access token of authenticated user who is deleting the Ping (must be the same as the owner of the Ping)
:id ID for the Ping to delete.

Errors

In addition to the general errors documented, the following special errors may also be applicable:
Error Code Notes
403 The user is not authorized to delete the Ping.

Example Usage

DELETE https://api.heello.com/pings/1
curl \
-d "access_token=ACCESS_TOKEN" \
-X DELETE "https://api.heello.com/pings/1.json"
// Note: PHP Examples use the Heello PHP Client library
// https://github.com/Heello/heello-php
require_once dirname(dirname(dirname(__FILE__))) . '/Heello.php';

// You can get an Application Key and Secret by visiting:
// http://developer.heello.com/apps
$api_application_key = "APPLICATION_KEY";
$api_application_secret = "APPLICATION_SECRET";

// You can get an access token and refresh token by implementing the auth
// flow described at (or use the demo provided):
// http://developer.heello.com/guides/authentication
$access_token = "ACCESS_TOKEN";

$api = new Heello\Client($api_application_key, $api_application_secret);
Heello\Client::config()->set_access_token($access_token);

try{
  // An HTTP 200 Status is returned on success
  $api->pings->destroy(array(
    "id" => 1
  ));

} catch (Exception $e){
  print $e->getMessage();
}
Returns HTTP Status: 200 on success

Live Demo

Live demo is not currently supported for this endpoint.