We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e11c58a commit bcb710bCopy full SHA for bcb710b
voice/retrieve-calls-info/index.php
@@ -0,0 +1,14 @@
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
+$filter = new \Nexmo\Call\Filter();
9
+$filter->setStart(new DateTime('- 1 day'));
10
+$filter->setEnd(new DateTime);
11
12
+foreach ($client->calls($filter) as $call){
13
+ echo json_encode($call).PHP_EOL;
14
+}
0 commit comments