phpExt / New FreshBooks / Delete Webhook Callback
Back to Collection Items
<?php
include("chilkat.php");
// Use "chilkat_9_5_0.php" for versions of Chilkat < 10.0.0
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
$http = new CkHttp();
// Adds the "Authorization: Bearer <access_token>" header.
$http->put_AuthToken('<access_token>');
// resp is a CkHttpResponse
$resp = $http->QuickRequest('DELETE','https://api.freshbooks.com/events/account/{{accountId}}/events/callbacks/{{callbackId}}');
if ($http->get_LastMethodSuccess() == false) {
print $http->lastErrorText() . "\n";
exit;
}
print $resp->get_StatusCode() . "\n";
print $resp->bodyStr() . "\n";
?>
Curl Command
curl -X DELETE
-H "Authorization: Bearer <access_token>"
https://api.freshbooks.com/events/account/{{accountId}}/events/callbacks/{{callbackId}}
Postman Collection Item JSON
{
"name": "Delete Webhook Callback",
"request": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "https://api.freshbooks.com/events/account/{{accountId}}/events/callbacks/{{callbackId}}",
"protocol": "https",
"host": [
"api",
"freshbooks",
"com"
],
"path": [
"events",
"account",
"{{accountId}}",
"events",
"callbacks",
"{{callbackId}}"
]
}
},
"response": [
]
}