telnyx 2.1.4__py2.py3-none-any.whl → 2.1.5__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of telnyx might be problematic. Click here for more details.
- telnyx/__init__.py +1 -1
- telnyx/api_resources/abstract/nested_resource_class_methods.py +16 -4
- telnyx/api_resources/verification.py +3 -1
- telnyx/api_resources/verify.py +8 -2
- {telnyx-2.1.4.dist-info → telnyx-2.1.5.dist-info}/METADATA +16 -5
- {telnyx-2.1.4.dist-info → telnyx-2.1.5.dist-info}/RECORD +9 -9
- {telnyx-2.1.4.dist-info → telnyx-2.1.5.dist-info}/WHEEL +1 -1
- {telnyx-2.1.4.dist-info → telnyx-2.1.5.dist-info}/LICENSE +0 -0
- {telnyx-2.1.4.dist-info → telnyx-2.1.5.dist-info}/top_level.txt +0 -0
telnyx/__init__.py
CHANGED
|
@@ -28,9 +28,21 @@ def nested_resource_class_methods(
|
|
|
28
28
|
parts.append(quote_plus(id, safe=util.telnyx_valid_id_parts))
|
|
29
29
|
if id is not None:
|
|
30
30
|
if "phone_number" in path:
|
|
31
|
-
parts.append(
|
|
31
|
+
parts.append(
|
|
32
|
+
path.format(
|
|
33
|
+
phone_number=quote_plus(
|
|
34
|
+
id, safe=util.telnyx_valid_id_parts + "+"
|
|
35
|
+
)
|
|
36
|
+
)
|
|
37
|
+
)
|
|
32
38
|
elif "verification_id" in path:
|
|
33
|
-
parts.append(
|
|
39
|
+
parts.append(
|
|
40
|
+
path.format(
|
|
41
|
+
verification_id=quote_plus(
|
|
42
|
+
id, safe=util.telnyx_valid_id_parts
|
|
43
|
+
)
|
|
44
|
+
)
|
|
45
|
+
)
|
|
34
46
|
else:
|
|
35
47
|
parts.append(path)
|
|
36
48
|
else:
|
|
@@ -101,11 +113,11 @@ def nested_resource_class_methods(
|
|
|
101
113
|
|
|
102
114
|
elif operation == "put":
|
|
103
115
|
|
|
104
|
-
def update_nested_resource(cls, id, nested_id, **params):
|
|
116
|
+
def update_nested_resource(cls, id, nested_id=None, **params):
|
|
105
117
|
url = getattr(cls, resource_url_method)(id, nested_id)
|
|
106
118
|
return getattr(cls, resource_request_method)("put", url, **params)
|
|
107
119
|
|
|
108
|
-
update_method = "
|
|
120
|
+
update_method = "put_%s" % resource
|
|
109
121
|
setattr(cls, update_method, classmethod(update_nested_resource))
|
|
110
122
|
|
|
111
123
|
else:
|
|
@@ -22,7 +22,9 @@ from telnyx.api_resources.abstract import (
|
|
|
22
22
|
"whatsapp", path="/v2/verifications/whatsapp", operations=["create"]
|
|
23
23
|
)
|
|
24
24
|
@nested_resource_class_methods(
|
|
25
|
-
"verify_by_phone_number",
|
|
25
|
+
"verify_by_phone_number",
|
|
26
|
+
path="by_phone_number/{phone_number}/actions/verify",
|
|
27
|
+
operations=["create"],
|
|
26
28
|
)
|
|
27
29
|
@nested_resource_class_methods(
|
|
28
30
|
"verify_by_id", path="actions/verify", operations=["create"]
|
telnyx/api_resources/verify.py
CHANGED
|
@@ -11,8 +11,14 @@ from telnyx.api_resources.abstract import (
|
|
|
11
11
|
|
|
12
12
|
@nested_resource_class_methods("sms", path="verifications/sms", operations=["create"])
|
|
13
13
|
@nested_resource_class_methods("call", path="verifications/call", operations=["create"])
|
|
14
|
-
@nested_resource_class_methods(
|
|
15
|
-
|
|
14
|
+
@nested_resource_class_methods(
|
|
15
|
+
"flashcall", path="verifications/flashcall", operations=["create"]
|
|
16
|
+
)
|
|
17
|
+
@nested_resource_class_methods(
|
|
18
|
+
"verify",
|
|
19
|
+
path="verifications/{verification_id}/actions/verify",
|
|
20
|
+
operations=["create"],
|
|
21
|
+
)
|
|
16
22
|
class Verify(
|
|
17
23
|
CreateableAPIResource,
|
|
18
24
|
DeletableAPIResource,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: telnyx
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.5
|
|
4
4
|
Summary: Python bindings for the Telnyx API
|
|
5
5
|
Home-page: https://github.com/team-telnyx/telnyx-python
|
|
6
6
|
Author: Telnyx
|
|
@@ -16,7 +16,6 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
16
16
|
Classifier: Operating System :: OS Independent
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -24,12 +23,24 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
24
23
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
25
24
|
Classifier: Topic :: Communications :: Telephony
|
|
26
25
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
27
|
-
Requires-Python: >=3.
|
|
26
|
+
Requires-Python: >=3.9
|
|
28
27
|
Description-Content-Type: text/markdown
|
|
29
28
|
License-File: LICENSE
|
|
30
29
|
Requires-Dist: requests>=2.20
|
|
31
30
|
Requires-Dist: six>=1.16.0
|
|
32
31
|
Requires-Dist: PyNaCl
|
|
32
|
+
Dynamic: author
|
|
33
|
+
Dynamic: author-email
|
|
34
|
+
Dynamic: classifier
|
|
35
|
+
Dynamic: description
|
|
36
|
+
Dynamic: description-content-type
|
|
37
|
+
Dynamic: home-page
|
|
38
|
+
Dynamic: keywords
|
|
39
|
+
Dynamic: license
|
|
40
|
+
Dynamic: project-url
|
|
41
|
+
Dynamic: requires-dist
|
|
42
|
+
Dynamic: requires-python
|
|
43
|
+
Dynamic: summary
|
|
33
44
|
|
|
34
45
|
# Telnyx Python Library
|
|
35
46
|
|
|
@@ -79,7 +90,7 @@ into using https://www.piwheels.org/ for ARM compiled wheels.
|
|
|
79
90
|
|
|
80
91
|
### Requirements
|
|
81
92
|
|
|
82
|
-
- Python 3.
|
|
93
|
+
- Python 3.9+ (PyPy supported)
|
|
83
94
|
|
|
84
95
|
#### Additional Requirements for Source Install
|
|
85
96
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
telnyx/__init__.py,sha256=
|
|
1
|
+
telnyx/__init__.py,sha256=sLjYScK605uVnc6lj_9GfbJjaEwb43StfmKYO9_l2Vo,1012
|
|
2
2
|
telnyx/api_requestor.py,sha256=hkQ00gVrV6XWoJAoNx_PqXobvJzwut2YTr9M1vfI3gk,10562
|
|
3
3
|
telnyx/error.py,sha256=7kwUMS7b0ec64A-Ugcwbjs4D2Pl7stEb-JjCE9T6Pic,4366
|
|
4
4
|
telnyx/http_client.py,sha256=P9htOl44DhSW_m5MkRYtz2U0uLxh7tyuaf1v-ja9MiY,20042
|
|
@@ -142,10 +142,10 @@ telnyx/api_resources/sub_number_order.py,sha256=hb0hAhEv0xry7TfjWvKyybMC-WN6xaVp
|
|
|
142
142
|
telnyx/api_resources/telephony_credential.py,sha256=_khQ2bOLoEQZ_p6qYB6-bjPwLoinPMR9JWol0_G59uE,646
|
|
143
143
|
telnyx/api_resources/texml_application.py,sha256=5gubR9gjvZmZW4lva-OU0igOh6r0fLikotuVaM4uqEU,389
|
|
144
144
|
telnyx/api_resources/texml_rest_command.py,sha256=Xfv4cbfikC1kundFjmBRtS1qM0uFllVhPLkuITWxcgU,327
|
|
145
|
-
telnyx/api_resources/verification.py,sha256=
|
|
145
|
+
telnyx/api_resources/verification.py,sha256=Z1Vm5erG2KXQ66JfXJW2zg7tU0WPxMNIzWELakByydo,2129
|
|
146
146
|
telnyx/api_resources/verified_calls_display_profile.py,sha256=hLFpgrMtSW_jlVleXax7VROWEkBPEjNTE0a5fgKfJyg,413
|
|
147
147
|
telnyx/api_resources/verified_number.py,sha256=8EGgTcC9BjBUrzH65znL15xNx4cgu1_hhF93VcMzcAw,515
|
|
148
|
-
telnyx/api_resources/verify.py,sha256=
|
|
148
|
+
telnyx/api_resources/verify.py,sha256=wIG1FmOUP0khDIptlXzZ9fA6sJ6az8b4IYO9D29Lkqg,1153
|
|
149
149
|
telnyx/api_resources/verify_profile.py,sha256=UJUUp2SRmrDzCt2oKHT_t3ynJ2G87_byx-dFffKUMkQ,383
|
|
150
150
|
telnyx/api_resources/virtual_cross_connect.py,sha256=Z9eDeR7HEdZkLSTfsoxfYE2lT5x4IYjA1WIPzy86hsg,613
|
|
151
151
|
telnyx/api_resources/wdr_detail_report.py,sha256=2_oJmdidVtX4DmPJsn0ff_8G0Gc-PL0Zo63Bym2FPZk,212
|
|
@@ -158,11 +158,11 @@ telnyx/api_resources/abstract/api_resource.py,sha256=I7rUSntKGM6sF_9zt8z4r5gSH4z
|
|
|
158
158
|
telnyx/api_resources/abstract/createable_api_resource.py,sha256=BSM5A7pWO1KtIhs9jdv2l44wE7RmV75hyFW6yB9k5Q8,549
|
|
159
159
|
telnyx/api_resources/abstract/deletable_api_resource.py,sha256=dB3tDxsiTxY1I04ygZFvvDbOWql0-x3Q-PJv_jxIvmc,307
|
|
160
160
|
telnyx/api_resources/abstract/listable_api_resource.py,sha256=shWcUha2LYM_WPedBXQ9bB_zlwZdLWAxccjVbklM2uU,907
|
|
161
|
-
telnyx/api_resources/abstract/nested_resource_class_methods.py,sha256=
|
|
161
|
+
telnyx/api_resources/abstract/nested_resource_class_methods.py,sha256=c8RrfcdycBi-0JQrZOTNmpeoJihxBTeLel7NuOsrD50,5094
|
|
162
162
|
telnyx/api_resources/abstract/singleton_api_resource.py,sha256=2g-rKkk2dT8aNJDKEFiaLFRs8wKk31kBTJpku3kpdNE,874
|
|
163
163
|
telnyx/api_resources/abstract/updateable_api_resource.py,sha256=2_WN99EUfBmnHunfjS3jlwY0EIoU8V7_j9OMRsiqedk,1673
|
|
164
|
-
telnyx-2.1.
|
|
165
|
-
telnyx-2.1.
|
|
166
|
-
telnyx-2.1.
|
|
167
|
-
telnyx-2.1.
|
|
168
|
-
telnyx-2.1.
|
|
164
|
+
telnyx-2.1.5.dist-info/LICENSE,sha256=h4YEwOcV9A9iTg1cUsg0z7uU7gxj281PMpKWj-AdQWY,1141
|
|
165
|
+
telnyx-2.1.5.dist-info/METADATA,sha256=HS4Zecufj24FTs5IMbokflyq59iqEms4ap2X_7m0sqc,10868
|
|
166
|
+
telnyx-2.1.5.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
|
167
|
+
telnyx-2.1.5.dist-info/top_level.txt,sha256=e59ZDpP51N6b62sY7VrNLq8aR9Ly5-IHtl7zCkGA0Yw,7
|
|
168
|
+
telnyx-2.1.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|