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,36 @@
1
+<?php
2
+
3
+namespace Telnyx;
4
+
5
+/**
6
+ * Class MessagingHostedNumberOrder
7
+ *
8
+ * @package Telnyx
9
+ */
10
+class MessagingHostedNumberOrder extends ApiResource
11
+{
12
+    const OBJECT_NAME = "messaging_hosted_number_order";
13
+
14
+    use ApiOperations\All;
15
+    use ApiOperations\Create;
16
+    use ApiOperations\Retrieve;
17
+    use ApiOperations\Delete;
18
+
19
+
20
+    /**
21
+     * Upload file required for a messaging hosted number order
22
+     *
23
+     * @param array|null $params
24
+     * @param array|string|null $options
25
+     *
26
+     * @return 
27
+     */
28
+    public function file_upload($params = null, $options = null)
29
+    {
30
+        $url = $this->instanceUrl() . '/actions/file_upload';
31
+        list($response, $opts) = $this->_request('post', $url, $params, $options);
32
+        $this->refreshFrom($response, $opts);
33
+        return $this;
34
+    }
35
+
36
+}