PHP code example of bootdesk / chat-sdk-adapter-telnyx
1. Go to this page and download the library: Download bootdesk/chat-sdk-adapter-telnyx library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bootdesk / chat-sdk-adapter-telnyx example snippets
use BootDesk\ChatSDK\Telnyx\TelnyxAdapter;
$adapter = new TelnyxAdapter(
apiKey: env('TELNYX_API_KEY'),
httpClient: new \GuzzleHttp\Client,
messagingProfileId: env('TELNYX_MESSAGING_PROFILE_ID'),
publicKey: env('TELNYX_PUBLIC_KEY'),
fromNumber: env('TELNYX_FROM_NUMBER'),
agentId: env('TELNYX_AGENT_ID'),
);