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,26 @@
1
+<?php
2
+
3
+namespace Telnyx;
4
+
5
+/**
6
+ * Class NumberLookup
7
+ *
8
+ * @package Telnyx
9
+ */
10
+class NumberLookup extends ApiResource
11
+{
12
+    const OBJECT_NAME = "number_lookup";
13
+
14
+    use ApiOperations\Retrieve;
15
+    
16
+    /**
17
+     * @return string The endpoint URL for the given class.
18
+     */
19
+    public static function classUrl()
20
+    {
21
+        // NOTE: This function override compensates for the lack of an S at the end of this endpoint.
22
+        // Original function inside ApiResource.php
23
+        $base = str_replace('.', '/', static::OBJECT_NAME);
24
+        return "/v2/${base}";
25
+    }
26
+}