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,81 @@
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 = "authid";
12
+$AUTH_TOKEN = "authtoken";
13
+
14
+$client = new RestClient($AUTH_ID, $AUTH_TOKEN);
15
+$client->client->setTimeout(40);
16
+
17
+
18
+// Get TollfreeVerification by uuid
19
+echo "########## Get TollfreeVerification ###################\n";
20
+try {
21
+    $response = $client->tollfreeVerification->get(
22
+        "03420d77-4fa8-45e1-6aad-f37d41a2ee4a"
23
+    );
24
+
25
+    print_r($response->properties);
26
+}
27
+catch (PlivoRestException $ex) {
28
+    print_r($ex);
29
+}
30
+
31
+
32
+// List TollfreeVerification
33
+echo "########## List TollfreeVerification ###################\n";
34
+try {
35
+    $response = $client->tollfreeVerification->getList();
36
+
37
+    print_r($response);
38
+}
39
+catch (PlivoRestException $ex) {
40
+    print_r($ex);
41
+}
42
+
43
+// // Create TollfreeVerification
44
+// echo "########## Create TollfreeVerification ###################\n";
45
+// try {
46
+//     $response = $client->tollfreeVerification->create(
47
+//     "18554950186",
48
+//          "2FA",
49
+//     "42f92135-6ec2-4110-8da4-71171f6aad44",
50
+//     "VERBAL",
51
+//      "100",
52
+//     "hbv",
53
+//      "message_sample",
54
+//      "http://google.com",
55
+//     "https://plivobin-prod-usw1.plivops.com/1pcfjrt1",
56
+//      "POST",
57
+//      "this is additional_information",
58
+//     "this is extra_data"
59
+//     );
60
+//
61
+//     print_r($response);
62
+// }
63
+// catch (PlivoRestException $ex) {
64
+//     print_r($ex);
65
+// }
66
+//
67
+//
68
+// // // Update TollfreeVerification by TollfreeVerification
69
+// // echo "########## Update TollfreeVerification ###################\n";
70
+// // try {
71
+// //     $response = $client->tollfreeVerification->update(
72
+// //         "81fc8b2d-1ab8-47c9-7245-e454227b7b7b",
73
+// //         ["3FA"]
74
+// //     );
75
+// //
76
+// //     print_r($response);
77
+// // }
78
+// // catch (PlivoRestException $ex) {
79
+// //     print_r($ex);
80
+// // }
81
+//