Event Before Closing the CallCard CallCard::BeforeClose
We are still updating this page
Some data may be missing here — we will complete it shortly.
Scope:
telephonyWho can subscribe:
any user
The CallCard::BeforeClose event occurs before the call card is closed.
No parameters are passed to the handler.
Event Subscription
How to Use Examples in Documentation
cURL (Webhook)
cURL (OAuth)
JS
PHP
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"PLACEMENT":"CallCard::BeforeClose","HANDLER":"**your_handler_url_here**"}' \
"https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/placement.bindEvent"
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"PLACEMENT":"CallCard::BeforeClose","HANDLER":"**your_handler_url_here**"}' \
"https://**put_your_bitrix24_address**/rest/placement.bindEvent?auth=**put_access_token_here**"
BX24.placement.bindEvent("CallCard::BeforeClose", function (callState) {
console.log(callState);
});
require_once('crest.php');
$result = CRest::call(
'placement.bindEvent',
[
'PLACEMENT' => 'CallCard::BeforeClose',
'HANDLER' => '**your_handler_url_here**'
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Continue Learning
- Get Call Status getStatus
- Disable Auto-Close disableAutoClose
- Disable Auto-Close enableAutoClose
- Event of Client Change CallCard::EntityChanged
- Event of Call Status Change CallCard::CallStateChanged
Copied
Previous