Browse code

Added README.md appinfo/info.xml appinfo/signature.json lib/Controller/AuthorApiController.php and the providers directory

DoubleBastionAdmin authored on 20/08/2022 16:33:00
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,32 @@
1
+<?php
2
+
3
+namespace Telnyx;
4
+
5
+/**
6
+ * Class ApiResponse
7
+ *
8
+ * @package Telnyx
9
+ */
10
+class ApiResponse
11
+{
12
+    public $headers;
13
+    public $body;
14
+    public $json;
15
+    public $code;
16
+
17
+    /**
18
+     * @param string $body
19
+     * @param integer $code
20
+     * @param array|null $headers
21
+     * @param array|null $json
22
+     *
23
+     * @return obj An APIResponse
24
+     */
25
+    public function __construct($body, $code, $headers, $json)
26
+    {
27
+        $this->body = $body;
28
+        $this->code = $code;
29
+        $this->headers = $headers;
30
+        $this->json = $json;
31
+    }
32
+}