Browse code

added appinfo/info.xml appinfo/signature.json CHANGELOG.txt lib/AppInfo/Application.php css/style.css providers/Plivo

DoubleBastionAdmin authored on 05/11/2025 13:35:09
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+
4
+require 'vendor/autoload.php';
5
+
6
+use Plivo\RestClient;
7
+use Plivo\Exceptions\PlivoRestException;
8
+
9
+
10
+
11
+$AUTH_ID = "YOUR_AUTH_ID";
12
+$AUTH_TOKEN = "YOUR_AUTH_TOKEN";
13
+
14
+$client = new RestClient($AUTH_ID, $AUTH_TOKEN);
15
+$client->client->setTimeout(40);
16
+
17
+try {
18
+    $params = array(
19
+        'limit' => 1
20
+    );
21
+    $response = $client->phonenumbers->list(
22
+        'US', $params
23
+    );
24
+
25
+    print_r($response);
26
+//     print_r($response->resources[0]->properties);
27
+}
28
+catch (PlivoRestException $ex) {
29
+    print_r($ex);
30
+}