8000 [Librarian] Regenerated @ b99d9f1d3667442d965805ac71bf6185ee04b82c · dialex-com/twilio-python@1bc466e · GitHub
[go: up one dir, main page]

Skip to content

Commit 1bc466e

Browse files
committed
[Librarian] Regenerated @ b99d9f1d3667442d965805ac71bf6185ee04b82c
1 parent 59780e2 commit 1bc466e

File tree

16 files changed

+208
-922
lines changed

16 files changed

+208
-922
lines changed

CHANGES.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ twilio-python Changelog
33

44
Here you can see the full list of changes between each twilio-python release.
55

6+
[2020-03-18] Version 6.37.0
7+
---------------------------
8+
**Api**
9+
- Add optional `emergency_calling_enabled` parameter to SIP Domain
10+
- Add optional property `call_reason` in the call create request
11+
12+
**Authy**
13+
- Added `friendly_name` and `config` as optional params to Factor update
14+
- Added `config` param to Factor creation **(breaking change)**
15+
16+
**Preview**
17+
- Renamed `SuccessRate` endpoint to `ImpressionsRate` for Branded Calls (fka. Verified by Twilio) **(breaking change)**
18+
19+
620
[2020-03-04] Version 6.36.0
721
---------------------------
822
**Library - Feature**

tests/integration/api/v2010/account/sip/test_domain.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_read_full_response(self):
5454
"voice_status_callback_method": "POST",
5555
"voice_status_callback_url": null,
5656
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
57-
"trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
57+
"emergency_calling_enabled": true
5858
}
5959
],
6060
"start": 0,
@@ -140,7 +140,7 @@ def test_create_response(self):
140140
"voice_status_callback_method": "POST",
141141
"voice_status_callback_url": null,
142142
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
143-
"trunk_sid": null
143+
"emergency_calling_enabled": true
144144
}
145145
'''
146146
))
@@ -189,7 +189,7 @@ def test_fetch_response(self):
189189
"voice_status_callback_method": "POST",
190190
"voice_status_callback_url": null,
191191
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
192-
"trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
192+
"emergency_calling_enabled": true
193193
}
194194
'''
195195
))
@@ -238,7 +238,7 @@ def test_update_response(self):
238238
"voice_status_callback_method": "POST",
239239
"voice_status_callback_url": null,
240240
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
241-
"trunk_sid": "TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
241+
"emergency_calling_enabled": true
242242
}
243243
'''
244244
))

tests/integration/api/v2010/account/test_message.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_create_response(self):
3636
{
3737
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3838
"api_version": "2010-04-01",
39-
"body": "Hello! \ud83d\udc4d",
39+
"body": "Hello! \\ud83d\\udc4d",
4040
"date_created": "Thu, 30 Jul 2015 20:12:31 +0000",
4141
"date_sent": "Thu, 30 Jul 2015 20:12:33 +0000",
4242
"date_updated": "Thu, 30 Jul 2015 20:12:33 +0000",
@@ -72,7 +72,7 @@ def test_create_wo_service_response(self):
7272
{
7373
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
7474
"api_version": "2010-04-01",
75-
"body": "Hello! \ud83d\udc4d",
75+
"body": "Hello! \\ud83d\\udc4d",
7676
"date_created": "Thu, 30 Jul 2015 20:12:31 +0000",
7777
"date_sent": "Thu, 30 Jul 2015 20:12:33 +0000",
7878
"date_updated": "Thu, 30 Jul 2015 20:12:33 +0000",
@@ -419,7 +419,7 @@ def test_update_response(self):
419419
{
420420
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
421421
"api_version": "2010-04-01",
422-
"body": "Hello, this is trash Benson cut and pasted and probably does not do anything useful! \ud83d\udc4d",
422+
"body": "Hello, this is trash Benson cut and pasted and probably does not do anything useful! \\ud83d\\udc4d",
423423
"date_created": "Thu, 30 Jul 2015 20:12:31 +0000",
424424
"date_sent": "Thu, 30 Jul 2015 20:12:33 +0000",
425425
"date_updated": "Thu, 30 Jul 2015 20:12:33 +0000",

tests/integration/authy/v1/service/entity/test_factor.py

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,19 @@ def test_create_request(self):
2020
with self.assertRaises(TwilioException):
2121
self.client.authy.v1.services("ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
2222
.entities("identity") \
23-
.factors.create(binding="binding", friendly_name="friendly_name", factor_type="app-push", twilio_authy_sandbox_mode="twilio_authy_sandbox_mode")
24-
25-
values = {'Binding': "binding", 'FriendlyName': "friendly_name", 'FactorType': "app-push", }
26-
27-
headers = {'Twilio-Authy-Sandbox-Mode': "twilio_authy_sandbox_mode", }
23+
.factors.create(binding="binding", friendly_name="friendly_name", factor_type="app-push", config="config", twilio_authy_sandbox_mode="twilio_authy_sandbox_mode", authorization="authorization")
24+
25+
values = {
26+
'Binding': "binding",
27+
'FriendlyName': "friendly_name",
28+
'FactorType': "app-push",
29+
'Config': "config",
30+
}
31+
32+
headers = {
33+
'Twilio-Authy-Sandbox-Mode': "twilio_authy_sandbox_mode",
34+
'Authorization': "authorization",
35+
}
2836
self.holodeck.assert_has_request(Request(
2937
'post',
3038
'https://authy.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/identity/Factors',
@@ -50,7 +58,13 @@ def test_create_response(self):
5058
"date_updated": "2015-07-30T20:00:00Z",
5159
"friendly_name": "friendly_name",
5260
"status": "unverified",
53-
"factor_type": "sms",
61+
"factor_type": "push",
62+
"config": {
63+
"sdk_version": "1.0",
64+
"app_id": "com.authy.authy",
65+
"notification_platform": "fcm",
66+
"noti 8000 fication_token": "test_token"
67+
},
5468
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5569
"links": {
5670
"challenges": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges"
@@ -61,7 +75,7 @@ def test_create_response(self):
6175

6276
actual = self.client.authy.v1.services("ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
6377
.entities("identity") \
64-
.factors.create(binding="binding", friendly_name="friendly_name", factor_type="app-push")
78+
.factors.create(binding="binding", friendly_name="friendly_name", factor_type="app-push", config="config")
6579

6680
self.assertIsNotNone(actual)
6781

@@ -121,7 +135,13 @@ def test_fetch_response(self):
121135
"date_updated": "2015-07-30T20:00:00Z",
122136
"friendly_name": "friendly_name",
123137
"status": "unverified",
124-
"factor_type": "sms",
138+
"factor_type": "push",
139+
"config": {
140+
"sdk_version": "1.0",
141+
"app_id": "com.authy.authy",
142+
"notification_platform": "fcm",
143+
"notification_token": "test_token"
144+
},
125145
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
126146
"links": {
127147
"challenges": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges"
@@ -192,7 +212,13 @@ def test_read_full_response(self):
192212
"date_updated": "2015-07-30 D966 T20:00:00Z",
193213
"friendly_name": "friendly_name",
194214
"status": "unverified",
195-
"factor_type": "sms",
215+
"factor_type": "push",
216+
"config": {
217+
"sdk_version": "1.0",
218+
"app_id": "com.authy.authy",
219+
"notification_platform": "fcm",
220+
"notification_token": "test_token"
221+
},
196222
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
197223
"links": {
198224
"challenges": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges"
@@ -247,7 +273,13 @@ def test_verify_response(self):
247273
"date_updated": "2015-07-30T20:00:00Z",
248274
"friendly_name": "friendly_name",
249275
"status": "verified",
250-
"factor_type": "sms",
276+
"factor_type": "push",
277+
"config": {
278+
"sdk_version": "1.0",
279+
"app_id": "com.authy.authy",
280+
"notification_platform": "fcm",
281+
"notification_token": "test_token"
282+
},
251283
"url": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
252284
"links": {
253285
"challenges": "https://authy.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors/YFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Challenges"

tests/integration/preview/bulk_exports/export/test_day.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_fetch_response(self):
3131
200,
3232
'''
3333
{
34-
"redirect_to": "https://com.twilio.dev-us1.exports.s3.amazonaws.com/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
34+
"redirect_to": "https://api.bulkexports.twilio.s3.amazonaws.com/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
3535
}
3636
'''
3737
))

tests/integration/preview/trusted_comms/business/insights/test_success_rate.py renamed to tests/integration/preview/trusted_comms/business/insights/test_impressions_rate.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
from twilio.http.response import Response
1313

1414

15-
class SuccessRateTestCase(IntegrationTestCase):
15+
class ImpressionsRateTestCase(IntegrationTestCase):
1616

1717
def test_fetch_request(self):
1818
self.holodeck.mock(Response(500, ''))
1919

2020
with self.assertRaises(TwilioException):
2121
self.client.preview.trusted_comms.businesses("BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
2222
.insights \
23-
.success_rate().fetch()
23+
.impressions_rate().fetch()
2424

2525
self.holodeck.assert_has_request(Request(
2626
'get',
27-
'https://preview.twilio.com/TrustedComms/Businesses/BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Insights/SuccessRate',
27+
'https://preview.twilio.com/TrustedComms/Businesses/BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Insights/ImpressionsRate',
2828
))
2929

3030
def test_fetch_response(self):
@@ -38,20 +38,19 @@ def test_fetch_response(self):
3838
"end": "2015-07-30T21:00:00Z",
3939
"interval": "minute",
4040
"reports": {
41-
"success_rate": {
41+
"impressions_rate": {
4242
"timestamp": "2015-07-30T20:00:00",
4343
"calls": 1200,
44-
"branded": 800,
45-
"value": 66.67
44+
"impressions": 800
4645
}
4746
},
48-
"url": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Insights/SuccessRate"
47+
"url": "https://preview.twilio.com/TrustedComms/Businesses/BXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Insights/ImpressionsRate"
4948
}
5049
'''
5150
))
5251

5352
actual = self.client.preview.trusted_comms.businesses("BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
5453
.insights \
55-
.success_rate().fetch()
54+
.impressions_rate().fetch()
5655

5756
self.assertIsNotNone(actual)

tests/integration/taskrouter/v1/workspace/test_workflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_fetch_response(self):
3333
{
3434
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3535
"assignment_callback_url": "http://example.com",
36-
"configuration": "task-routing:\\n - filter: \\n - 1 == 1\\n target:\\n - queue: WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n set-priority: 0\\n",
36+
"configuration": "task-routing:\\\\n - filter: \\\\n - 1 == 1\\\\n target:\\\\n - queue: WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\\\n set-priority: 0\\\\n",
3737
"date_created": "2014-05-14T10:50:02Z",
3838
"date_updated": "2014-05-14T23:26:06Z",
3939
"document_content_type": "application/json",
@@ -76,7 +76,7 @@ def test_update_response(self):
7676
{
7777
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
7878
"assignment_callback_url": "http://example.com",
79-
"configuration": "task-routing:\\n - filter: \\n - 1 == 1\\n target:\\n - queue: WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n set-priority: 0\\n",
79+
"configuration": "task-routing:\\\\n - filter: \\\\n - 1 == 1\\\\n target:\\\\n - queue: WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\\\n set-priority: 0\\\\n",
8080
"date_created": "2014-05-14T10:50:02Z",
8181
"date_updated": "2014-05-14T23:26:06Z",
8282
"document_content_type": "application/json",
@@ -153,7 +153,7 @@ def test_read_full_response(self):
153153
{
154154
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
155155
"assignment_callback_url": "http://example.com",
156-
"configuration": "task-routing:\\n - filter: \\n - 1 == 1\\n target:\\n - queue: WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n set-priority: 0\\n",
156+
"configuration": "task-routing:\\\\n - filter: \\\\n - 1 == 1\\\\n target:\\\\n - queue: WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\\\n set-priority: 0\\\\n",
157157
"date_created": "2014-05-14T10:50:02Z",
158158
"date_updated": "2014-05-15T16:47:51Z",
159159
"document_content_type": "application/json",
@@ -225,7 +225,7 @@ def test_create_response(self):
225225
{
226226
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
227227
"assignment_callback_url": "http://example.com",
228-
"configuration": "task-routing:\\n - filter: \\n - 1 == 1\\n target:\\n - queue: WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n set-priority: 0\\n",
228+
"configuration": "task-routing:\\\\n - filter: \\\\n - 1 == 1\\\\n target:\\\\n - queue: WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\\\n set-priority: 0\\\\n",
229229
"date_created": "2014-05-14T10:50:02Z",
230230
"date_updated": "2014-05-14T23:26:06Z",
231231
"document_content_type": "application/json",

0 commit comments

Comments
 (0)
0