Skip to content

Commit 083f021

Browse files
committed
Add DTMF example
1 parent 7ef77e5 commit 083f021

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
require_once __DIR__ . '/../../config.php';
3+
require_once __DIR__ . '/../../vendor/autoload.php';
4+
5+
$keypair = new \Nexmo\Client\Credentials\Keypair(file_get_contents(NEXMO_APPLICATION_PRIVATE_KEY_PATH), NEXMO_APPLICATION_ID);
6+
$client = new \Nexmo\Client($keypair);
7+
8+
$dtmf = $client->calls[NEXMO_CALL_UUID]->dtmf();
9+
$dtmf->setDigits('2468#');
10+
$dtmf->put();

0 commit comments

Comments
 (0)