Skip to content

Commit ff9f030

Browse files
committed
Add retrieve-call-info
1 parent bcb710b commit ff9f030

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

voice/retrieve-call-info/index.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
$call = $client->calls()->get(NEXMO_CALL_UUID);
9+
echo json_encode($call).PHP_EOL;

0 commit comments

Comments
 (0)