Skip to main content

webhooks/get

Get webhook details

Query: webhooks/webhook/id/[webhook_id]

Type: GET

Description: Returns webhook details data

Example request:

$idibuAPIEndpoint = 'https://v3.idibu.com/c/oauth/v1';
$access_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';

$params = [
'method' => 'webhooks/webhook',
'id' => 'e9a05cf1-17d2-4556-a3a3-a930267d3f4e'
];

$idibuAPIEndpoint .= '?' . http_build_query($params);

$ch = curl_init($idibuAPIEndpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer ' . $access_token,
]);
$response = curl_exec($ch);
curl_close($ch);

Example response:

[
{
"id": "e9a05cf1-17d2-4556-a3a3-a930267d3f4e",
"payload_url": "https:\/\/v3.idibu.com\/t.php",
"content_type": "application\/json",
"secret": "1",
"send_all_events": "0",
"events": "[\"vacancy\",\"attract\",\"search\",\"candidate\",\"user\",\"post\"]",
"active_flag": "on",
"ssl_flag": "off",
"owner_id": 141,
"created_time": "2017-06-21 16:24:39"
}
]