Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/./../app/.././../../finland.picotech.app/public_html/storage/../vendor/./phpoption/../laravel/../nikic/../telnyx/../brick/../unicodeveloper/../firebase/../ezyang/../maatwebsite/.././messagebird/./.././bin/./../telnyx/telnyx-php/./tests/../examples
الملفات الموجودة في هذا الـ Path:
.
..
example_webhook.php
simple_webhook.php
verify_sms_demo.php

مشاهدة ملف: simple_webhook.php

<?php
require_once(__DIR__ . '/../init.php');

// Please fetch the public key from: https://portal.telnyx.com/#/app/account/public-key
\Telnyx\Telnyx::setPublicKey('######');

// Validate the webhook against the public key and retrieve the event object
$webhook_event = \Telnyx\Webhook::constructFromRequest();

// Now you can work with the $webhook_event object
print_r($webhook_event);

// Send status code to signal that the webhook was successfully received
http_response_code(200);