telnyx 2.1.4__py2.py3-none-any.whl → 2.1.6__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/__init__.py +3 -2
- telnyx/api_resources/abstract/nested_resource_class_methods.py +16 -4
- telnyx/api_resources/{call_recording.py → recording.py} +3 -7
- telnyx/api_resources/verification.py +3 -1
- telnyx/api_resources/verify.py +8 -2
- telnyx/util.py +1 -1
- {telnyx-2.1.4.dist-info → telnyx-2.1.6.dist-info}/METADATA +17 -5
- {telnyx-2.1.4.dist-info → telnyx-2.1.6.dist-info}/RECORD +12 -12
- {telnyx-2.1.4.dist-info → telnyx-2.1.6.dist-info}/WHEEL +1 -1
- {telnyx-2.1.4.dist-info → telnyx-2.1.6.dist-info/licenses}/LICENSE +0 -0
- {telnyx-2.1.4.dist-info → telnyx-2.1.6.dist-info}/top_level.txt +0 -0
telnyx/__init__.py
CHANGED
telnyx/api_resources/__init__.py
CHANGED
|
@@ -27,7 +27,7 @@ from telnyx.api_resources.business_identity import BusinessIdentity
|
|
|
27
27
|
from telnyx.api_resources.call import Call
|
|
28
28
|
from telnyx.api_resources.call_control_application import CallControlApplication
|
|
29
29
|
from telnyx.api_resources.call_information import CallInformation
|
|
30
|
-
from telnyx.api_resources.
|
|
30
|
+
from telnyx.api_resources.recording import Recording
|
|
31
31
|
from telnyx.api_resources.campaign import Campaign
|
|
32
32
|
from telnyx.api_resources.cdr_usage_report import CdrUsageReport
|
|
33
33
|
from telnyx.api_resources.comment import Comment
|
|
@@ -162,6 +162,7 @@ from telnyx.api_resources.wireless_detail_record_report import (
|
|
|
162
162
|
WirelessDetailRecordsReports,
|
|
163
163
|
)
|
|
164
164
|
|
|
165
|
+
|
|
165
166
|
# flake8: noqa
|
|
166
167
|
|
|
167
168
|
|
|
@@ -191,7 +192,6 @@ __all__ = [
|
|
|
191
192
|
"Call",
|
|
192
193
|
"CallControlApplication",
|
|
193
194
|
"CallInformation",
|
|
194
|
-
"CallRecording",
|
|
195
195
|
"Campaign",
|
|
196
196
|
"CdrUsageReport",
|
|
197
197
|
"Comment",
|
|
@@ -278,6 +278,7 @@ __all__ = [
|
|
|
278
278
|
"Queue",
|
|
279
279
|
"QueueCall",
|
|
280
280
|
"QueueCommand",
|
|
281
|
+
"Recording",
|
|
281
282
|
"RecordingsCommand",
|
|
282
283
|
"Region",
|
|
283
284
|
"RegisterCall",
|
|
@@ -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:
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
from __future__ import absolute_import, division, print_function
|
|
2
2
|
|
|
3
3
|
from telnyx.api_resources.abstract import (
|
|
4
|
-
CreateableAPIResource,
|
|
5
4
|
DeletableAPIResource,
|
|
6
5
|
ListableAPIResource,
|
|
7
|
-
UpdateableAPIResource,
|
|
8
6
|
nested_resource_class_methods,
|
|
9
7
|
)
|
|
10
8
|
|
|
11
9
|
|
|
12
10
|
@nested_resource_class_methods("delete", path="actions/delete", operations=["delete"])
|
|
13
|
-
class
|
|
14
|
-
CreateableAPIResource,
|
|
11
|
+
class Recording(
|
|
15
12
|
DeletableAPIResource,
|
|
16
13
|
ListableAPIResource,
|
|
17
|
-
UpdateableAPIResource,
|
|
18
14
|
):
|
|
19
|
-
OBJECT_NAME = "
|
|
15
|
+
OBJECT_NAME = "recording"
|
|
20
16
|
|
|
21
17
|
def delete(self, **params):
|
|
22
|
-
return self.delete_delete(**params)
|
|
18
|
+
return self.delete_delete(self.id, nested_id=None, **params)
|
|
@@ -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,
|
telnyx/util.py
CHANGED
|
@@ -131,7 +131,7 @@ def load_object_classes():
|
|
|
131
131
|
api_resources.Call.OBJECT_NAME: api_resources.Call,
|
|
132
132
|
api_resources.CallControlApplication.OBJECT_NAME: api_resources.CallControlApplication,
|
|
133
133
|
api_resources.CallInformation.OBJECT_NAME: api_resources.CallInformation,
|
|
134
|
-
api_resources.
|
|
134
|
+
api_resources.Recording.OBJECT_NAME: api_resources.Recording,
|
|
135
135
|
api_resources.Campaign.OBJECT_NAME: api_resources.Campaign,
|
|
136
136
|
api_resources.CdrUsageReport.OBJECT_NAME: api_resources.CdrUsageReport,
|
|
137
137
|
api_resources.Comment.OBJECT_NAME: api_resources.Comment,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: telnyx
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.6
|
|
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,25 @@ 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: license-file
|
|
41
|
+
Dynamic: project-url
|
|
42
|
+
Dynamic: requires-dist
|
|
43
|
+
Dynamic: requires-python
|
|
44
|
+
Dynamic: summary
|
|
33
45
|
|
|
34
46
|
# Telnyx Python Library
|
|
35
47
|
|
|
@@ -79,7 +91,7 @@ into using https://www.piwheels.org/ for ARM compiled wheels.
|
|
|
79
91
|
|
|
80
92
|
### Requirements
|
|
81
93
|
|
|
82
|
-
- Python 3.
|
|
94
|
+
- Python 3.9+ (PyPy supported)
|
|
83
95
|
|
|
84
96
|
#### Additional Requirements for Source Install
|
|
85
97
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
telnyx/__init__.py,sha256=
|
|
1
|
+
telnyx/__init__.py,sha256=sKRkvTr7dh5i0xnU7sU7AhKScakFTqzyAJXRtNK2V64,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
|
|
@@ -6,9 +6,9 @@ telnyx/multipart_data_generator.py,sha256=A6rNpe1WJ859ncFSvAEGHUFuK_fHQiLKqYJAL2
|
|
|
6
6
|
telnyx/request_metrics.py,sha256=FHW4rRRYmUe54IWlEgC7BIsM7yvEXMBncPut0E0EWGY,401
|
|
7
7
|
telnyx/telnyx_object.py,sha256=ckPaeniC34GOEyCJ9dA6OCVvfRcXYvNJnQ0gqG7mOms,9453
|
|
8
8
|
telnyx/telnyx_response.py,sha256=4oWm_bDEavy7J3I7DvfD6FpFHCbFj9w1x76OiJFfnoU,422
|
|
9
|
-
telnyx/util.py,sha256=
|
|
9
|
+
telnyx/util.py,sha256=PpAiSU_Ind7o34-uShJbvl5KGjOZuKFpDpDc722s8Gc,16514
|
|
10
10
|
telnyx/webhook.py,sha256=HrmuTWy_6SJMKpjDsuTWTdfkmcONhoE4PAnojreR7y0,1970
|
|
11
|
-
telnyx/api_resources/__init__.py,sha256=
|
|
11
|
+
telnyx/api_resources/__init__.py,sha256=0srJEzglkI63p18lOZmbTgIOHC_48sVfU_IiDERYy-4,12986
|
|
12
12
|
telnyx/api_resources/access_control_ip.py,sha256=MNE-cuuoF1Rh_gVurfsRWby-7DgFTmDtKjg_ih_ZBNA,319
|
|
13
13
|
telnyx/api_resources/access_ip_address.py,sha256=D1HggM0YTQ9qyqQf8H5CTzecPBmhTNO8NNaOeAcr5Vg,400
|
|
14
14
|
telnyx/api_resources/access_token.py,sha256=MoXR6NLQr10amLOEFx_5dzjpdZBEnvR8-_Uy4IRa6-w,207
|
|
@@ -34,7 +34,6 @@ telnyx/api_resources/business_identity.py,sha256=u5VblLBPRKYJorMG4rOMZcKVyN9xN2v
|
|
|
34
34
|
telnyx/api_resources/call.py,sha256=WEW6tZksdK2QgDX0STmq5KIAMy9whPNdNz7kpCDOo3Q,6444
|
|
35
35
|
telnyx/api_resources/call_control_application.py,sha256=dU_9-fXGpWVw57Cp5keSl-LMpYmMBIzr7IqCXViYwow,402
|
|
36
36
|
telnyx/api_resources/call_information.py,sha256=EtuGY0RJsSFnAaegOrGQllQ0eGTDohqlQ1cZOW4u8dg,211
|
|
37
|
-
telnyx/api_resources/call_recording.py,sha256=1Pl67HBV1K-z64CfPh99iO-Dj3XYebJD8iRMXFOTbz0,582
|
|
38
37
|
telnyx/api_resources/campaign.py,sha256=2VR8OzOz_in0hzGe4qNWxYPDxJwgUXZmoo7DJyB2Z5k,1235
|
|
39
38
|
telnyx/api_resources/cdr_usage_report.py,sha256=7E_fU92Kf4VfZIK5oTkkhUJgmj7472zIfiqK3TaoinA,210
|
|
40
39
|
telnyx/api_resources/comment.py,sha256=c3DhpM1j7YAQZboV_UTb7RKgwqSMJhtUMQvwe2siFW4,240
|
|
@@ -118,6 +117,7 @@ telnyx/api_resources/public_key.py,sha256=iQK2BodZvtHCg9KSsg9ofclpyv0RHBZ_90LTO5
|
|
|
118
117
|
telnyx/api_resources/push_credential.py,sha256=kBCmVn7Znr2C88ZOJIuPnsyQWZxloIyxn_1xnJ2Nwo4,316
|
|
119
118
|
telnyx/api_resources/queue.py,sha256=jgbd_xIrPYCq0WlL-brpchCFsJq-ZVm3Vddgis-S0r4,598
|
|
120
119
|
telnyx/api_resources/queue_command.py,sha256=UOL3mfp59h34hNtsIz3DeH1agxZ00SbP456YxGi_p2I,205
|
|
120
|
+
telnyx/api_resources/recording.py,sha256=zl7ts6jn5D9MEct6DGJ9xnONgN3uF0rtdbFQ6yvmeF4,490
|
|
121
121
|
telnyx/api_resources/recordings_command.py,sha256=U_A_ka8Lm4qmmo4ALTYdvcnUuMwAnkupNXyQTHtKzC0,215
|
|
122
122
|
telnyx/api_resources/region.py,sha256=hqeuBVjn3ay-QklzDQZ_cvViY0cJZZDLyWJe2Fuq7lM,192
|
|
123
123
|
telnyx/api_resources/register_call.py,sha256=v9vllTwRom7u5JR2lZjbxqmPR9JwB6srwkqukz8VY2o,209
|
|
@@ -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.6.dist-info/licenses/LICENSE,sha256=h4YEwOcV9A9iTg1cUsg0z7uU7gxj281PMpKWj-AdQWY,1141
|
|
165
|
+
telnyx-2.1.6.dist-info/METADATA,sha256=vSk-uX1BRijo31MgmyX17fuifUvDMTGsJosS_X2xqKc,10890
|
|
166
|
+
telnyx-2.1.6.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
167
|
+
telnyx-2.1.6.dist-info/top_level.txt,sha256=e59ZDpP51N6b62sY7VrNLq8aR9Ly5-IHtl7zCkGA0Yw,7
|
|
168
|
+
telnyx-2.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|