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,33 @@
1
+<?php
2
+
3
+namespace Telnyx;
4
+
5
+/**
6
+ * Class NumberReservation
7
+ *
8
+ * @package Telnyx
9
+ */
10
+class NumberReservation extends ApiResource
11
+{
12
+    const OBJECT_NAME = "number_reservation";
13
+
14
+    use ApiOperations\All;
15
+    use ApiOperations\Create;
16
+    use ApiOperations\Retrieve;
17
+
18
+    /**
19
+     * List all phone numbers associated with a messaging profile.
20
+     *
21
+     * @param array|null $params
22
+     * @param array|string|null $options
23
+     *
24
+     * @return
25
+     */
26
+    public function actions_extend($params = null, $options = null)
27
+    {
28
+        $url = $this->instanceUrl() . '/actions/extend';
29
+        list($response, $opts) = $this->_request('post', $url, $params, $options);
30
+        $this->refreshFrom($response, $opts);
31
+        return $this;
32
+    }
33
+}