Set your default language: PHP | Curl

POST pings/:id/echo

Echo a Ping

Details

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

Parameters

Parameter Required Notes
access_token Access token of authenticated user creating the Ping.
:id ID For the Ping to echo. Included as part of the URL.

Errors

There are no unique error states for this endpoint, please see our page detailing general errors you may encounter.

Example Usage

POST https://api.heello.com/pings/1/echo.json
curl \
-d "access_token=ACCESS_TOKEN" \
-X POST "https://api.heello.com/pings/6/echo.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{
  $response = $api->pings->echo(array(
    "id" => 1
  ));

  // A "201 Created" response is returned with the Ping object
  // see pings/show for output
  print_r($response);
} catch (Exception $e){
  print $e->getMessage();
}
On a successul request, a '201 Created' response is sent
with a Ping object for the Ping created.

See endpoint documentation for pings/show for details.

Live Demo

Live demo is not currently supported for this endpoint.