8000 [Librarian] Regenerated @ 040e39287855db8e4ad52712bd52f9a63518a291 Β· BioComputing/twilio-python@42a9083 Β· GitHub
[go: up one dir, main page]

Skip to content

Commit 42a9083

Browse files
committed
[Librarian] Regenerated @ 040e39287855db8e4ad52712bd52f9a63518a291
1 parent 394dd1f commit 42a9083

31 files changed

+117
-112
lines changed

β€ŽCHANGES.md

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

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

6+
[2018-06-19] Version 6.14.5
7+
----------------------------
8+
**Library**
9+
- PR #425: Allow adding TwiML children with generic tag names. Thanks to @mbichoffe!
10+
- PR #422: Allow adding text to TwiML nodes. Thanks to @ekarson!
11+
- PR #421: Add method to validate ssl certificate. Thanks to @yannieyip!
12+
13+
**Twiml**
14+
- Add methods to helper libraries to inject arbitrary text under a TwiML node
15+
16+
617
[2018-06-04] Version 6.14.4
718
----------------------------
819
**Lookups**

β€Žtests/integration/api/v2010/account/test_application.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,11 @@ def test_read_full_response(self):
175175
],
176176
"end": 0,
177177
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications.json?PageSize=1&Page=0",
178-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications.json?PageSize=1&Page=35",
179178
"next_page_uri": null,
180-
"num_pages": 36,
181-
"page": 0,
182-
"page_size": 1,
183179
"previous_page_uri": null,
180+
"page_size": 1,
181+
"page": 0,
184182
"start": 0,
185-
"total": 36,
186183
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications.json?PageSize=1&Page=0"
187184
}
188185
'''
@@ -201,14 +198,11 @@ def test_read_empty_response(self):
201198
"applications": [],
202199
"end": 0,
203200
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications.json?PageSize=1&Page=0",
204-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications.json?PageSize=1&Page=35",
205-
"next_page_uri": null,
206-
"num_pages": 36,
207-
"page": 0,
208-
"page_size": 1,
209201
"previous_page_uri": null,
202+
"page_size": 1,
210203
"start": 0,
211-
"total": 36,
204+
"next_page_uri": null,
205+
"page": 0,
212206
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications.json?PageSize=1&Page=0"
213207
}
214208
'''

β€Žtwilio/rest/api/v2010/account/call/__init__.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def create(self, to, from_, method=values.unset, fallback_url=values.unset,
5858
"""
5959
Create a new CallInstance
6060
61-
:param unicode to: Phone number, SIP address or client identifier to call
61+
:param unicode to: Phone number, SIP address, or client identifier to call
6262
:param unicode from_: Twilio number from which to originate the call
6363
:param unicode method: HTTP method to use to fetch TwiML
6464
:param unicode fallback_url: Fallback URL in case of error
@@ -72,14 +72,14 @@ def create(self, to, from_, method=values.unset, fallback_url=values.unset,
7272
:param bool record: Whether or not to record the Call
7373
:param unicode recording_channels: mono or dualSet this parameter to specify the number of channels in the final recording.
7474
:param unicode recording_status_callback: A URL that Twilio will send a webhook request to when the recording is available for access.
75-
:param unicode recording_status_callback_method: The HTTP method Twilio should use when requesting the above URL.
75+
:param unicode recording_status_callback_method: The HTTP method Twilio should use when requesting the `RecordingStatusCallback` URL.
7676
:param unicode sip_auth_username: The sip_auth_username
7777
:param unicode sip_auth_password: The sip_auth_password
7878
:param unicode machine_detection: Enable machine detection or end of greeting detection
7979
:param unicode machine_detection_timeout: Number of miliseconds to wait for machine detection
8080
:param unicode 10000 recording_status_callback_event: The recording status changes that Twilio will send webhooks on to the URL specified in RecordingStatusCallback.
8181
:param unicode trim: Set this parameter to control trimming of silence on the recording.
82-
:param unicode caller_id: The phone number, SIP address or Client identifier that made this Call. Phone numbers are in E.164 format (e.g. +16175551212). SIP addresses are formatted as `name@company.com`.
82+
:param unicode caller_id: The phone number, SIP address, or Client identifier that made this Call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`.
8383
:param unicode url: Url from which to fetch TwiML
8484
:param unicode application_sid: ApplicationSid that configures from where to fetch TwiML
8585
@@ -629,23 +629,23 @@ def annotation(self):
629629
@property
630630
def answered_by(self):
631631
"""
632-
:returns: If this call was initiated with answering machine detection, either `human` or `machine`. Empty otherwise.
632+
:returns: Either `human` or `machine` if this Call was initiated with answering machine detection. Empty otherwise.
633633
:rtype: unicode
634634
"""
635635
return self._properties['answered_by']
636636

637637
@property
638638
def api_version(self):
639639
"""
640-
:returns: The API Version the Call was created through
640+
:returns: The API Version used to create the Call
641641
:rtype: unicode
642642
"""
643643
return self._properties['api_version']
644644

645645
@property
646646
def caller_name(self):
647647
"""
648-
:returns: If this call was an incoming call to a phone number with Caller ID Lookup enabled, the caller's name. Empty otherwise.
648+
:returns: The caller's name if this Call was an incoming call to a phone number with Caller ID Lookup enabled. Empty otherwise.
649649
:rtype: unicode
650650
"""
651651
return self._properties['caller_name']
@@ -669,15 +669,15 @@ def date_updated(self):
669669
@property
670670
def direction(self):
671671
"""
672-
:returns: A string describing the direction of the call. `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `Dial` verb.
672+
:returns: A string describing the direction of the Call. `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `Dial` verb.
673673
:rtype: unicode
674674
"""
675675
return self._properties['direction']
676676

677677
@property
678678
def duration(self):
679679
"""
680-
:returns: The length of the call in seconds.
680+
:returns: The length of the Call in seconds.
681681
:rtype: unicode
682682
"""
683683
return self._properties['duration']
@@ -693,15 +693,15 @@ def end_time(self):
693693
@property
694694
def forwarded_from(self):
695695
"""
696-
:returns: If this Call was an incoming call forwarded from another number, the forwarding phone number (depends on carrier supporting forwarding). Empty otherwise.
696+
:returns: The forwarding phone number if this Call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Empty otherwise.
697697
:rtype: unicode
698698
"""
699699
return self._properties['forwarded_from']
700700

701701
@property
702702
def from_(self):
703703
"""
704-
:returns: The phone number, SIP address or Client identifier that made this Call. Phone numbers are in E.164 format (e.g. +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`.
704+
:returns: The phone number, SIP address or Client identifier that made this Call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`.
705705
:rtype: unicode
706706
"""
707707
return self._properties['from_']
@@ -717,31 +717,31 @@ def from_formatted(self):
717717
@property
718718
def group_sid(self):
719719
"""
720-
:returns: A 34 character Group Sid associated with this Call. Empty if no Group is associated with the Call.
720+
:returns: A 34-character Group Sid associated with this Call. Empty if no Group is associated with the Call.
721721
:rtype: unicode
722722
"""
723723
return self._properties['group_sid']
724724

725725
@property
726726
def parent_call_sid(self):
727727
"""
728-
:returns: A 34 character string that uniquely identifies the Call that created this leg.
728+
:returns: A 34-character string that uniquely identifies the Call that created this leg.
729729
:rtype: unicode
730730
"""
731731
return self._properties['parent_call_sid']
732732

733733
@property
734734
def phone_number_sid(self):
735735
"""
736-
:returns: If the call was inbound, this is the Sid of the IncomingPhoneNumber that received the call. If the call was outbound, it is the Sid of the OutgoingCallerId from which the call was placed.
736+
:returns: If the call was inbound, this is the Sid of the `IncomingPhoneNumber` that received the call. If the call was outbound, it is the Sid of the `OutgoingCallerId` from which the call was placed.
737737
:rtype: unicode
738738
"""
739739
return self._properties['phone_number_sid']
740740

741741
@property
742742
def price(self):
743743
"""
744-
:returns: The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available.
744+
:returns: The charge for this Call, in the currency associated with the account. Populated after the call is completed. May not be immediately available.
745745
:rtype: unicode
746746
"""
747747
return self._properties['price']
@@ -757,7 +757,7 @@ def price_unit(self):
757757
@property
758758
def sid(self):
759759
"""
760-
:returns: A 34 character string that uniquely identifies this resource.
760+
:returns: A 34-character string that uniquely identifies the Call resource.
761761
:rtype: unicode
762762
"""
763763
return self._properties['sid']
@@ -773,7 +773,7 @@ def start_time(self):
773773
@property
774774
def status(self):
775775
"""
776-
:returns: A string representing the status of the call.
776+
:returns: A string representing the status of the Call.
777777
:rtype: CallInstance.Status
778778
"""
779779
return self._properties['status']
@@ -789,7 +789,7 @@ def subresource_uris(self):
789789
@property
790790
def to(self):
791791
"""
792-
:returns: The phone number, SIP address or Client identifier that received this Call. Phone numbers are in E.164 format (e.g. +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`.
792+
:returns: The phone number, SIP address or Client identifier that received this Call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`.
793793
:rtype: unicode
794794
"""
795795
return self._properties['to']

β€Žtwilio/rest/api/v2010/account/call/feedback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, version, account_sid, call_sid):
2424
2525
:param Version version: Version that contains the resource
2626
:param account_sid: The account_sid
27-
:param call_sid: A 34 character string that uniquely identifies this resource.
27+
:param call_sid: A 34-character string that uniquely identifies the Call resource.
2828
2929
:returns: twilio.rest.api.v2010.account.call.feedback.FeedbackList
3030
:rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackList
@@ -80,7 +80,7 @@ def __init__(self, version, response, solution):
8080
:param Version version: Version that contains the resource
8181
:param Response response: Response from the API
8282
:param account_sid: The account_sid
83-
:param call_sid: A 34 character string that uniquely identifies this resource.
83+
:param call_sid: A 34-character string that uniquely identifies the Call resource.
8484
8585
:returns: twilio.rest.api.v2010.account.call.feedback.FeedbackPage
8686
:rtype: twilio.rest.api.v2010.account.call.feedback.FeedbackPage

β€Žtwilio/rest/api/v2010/account/conference/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def update(self, status=values.unset, announce_url=values.unset,
308308
Update the ConferenceInstance
309309
310310
:param ConferenceInstance.UpdateStatus status: Specifying completed will end the conference and kick all participants
311-
:param unicode announce_url: The announce_url
312-
:param unicode announce_method: The announce_method
311+
:param unicode announce_url: The 'AnnounceUrl' attribute lets you specify a URL for announcing something into a conference.
312+
:param unicode announce_method: Specify GET or POST, defaults to POST
313313
314314
:returns: Updated ConferenceInstance
315315
:rtype: twilio.rest.api.v2010.account.conference.ConferenceInstance
@@ -506,8 +506,8 @@ def update(self, status=values.unset, announce_url=values.unset,
506506
Update the ConferenceInstance
507507
508508
:param ConferenceInstance.UpdateStatus status: Specifying completed will end the conference and kick all participants
509-
:param unicode announce_url: The announce_url
510-
:param unicode announce_method: The announce_method
509+
:param unicode announce_url: The 'AnnounceUrl' attribute lets you specify a URL for announcing something into a conference.
510+
:param unicode announce_method: Specify GET or POST, defaults to POST
511511
512512
:returns: Updated ConferenceInstance
513513
:rtype: twilio.rest.api.v2010.account.conference.ConferenceInstance

β€Žtwilio/rest/api/v2010/account/conference/participant.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ def update(self, muted=values.unset, hold=values.unset, hold_url=values.unset,
380380
:param bool hold: Specifying true will hold the participant, while false will un-hold.
381381
:param unicode hold_url: The 'HoldUrl' attribute lets you specify a URL for music that plays when a participant is held.
382382
:param unicode hold_method: Specify GET or POST, defaults to GET
383-
:param unicode announce_url: The announce_url
384-
:param unicode announce_method: The announce_method
383+
:param unicode announce_url: The 'AnnounceUrl' attribute lets you specify a URL for announcing something to the participant.
384+
:param unicode announce_method: Specify GET or POST, defaults to POST
385385
386386
:returns: Updated ParticipantInstance
387387
:rtype: twilio.rest.api.v2010.account.conference.participant.ParticipantInstance
@@ -598,8 +598,8 @@ def update(self, muted=values.unset, hold=values.unset, hold_url=values.unset,
598598
:param bool hold: Specifying true will hold the participant, while false will un-hold.
599599
:param unicode hold_url: The 'HoldUrl' attribute lets you specify a URL for music that plays when a participant is held.
600600
:param unicode hold_method: Specify GET or POST, defaults to GET
601-
:param unicode announce_url: The announce_url
602-
:param unicode announce_method: The announce_method
601+
:param unicode announce_url: The 'AnnounceUrl' attribute lets you specify a URL for announcing something to the participant.
602+
:param unicode announce_method: Specify GET or POST, defaults to POST
603603
604604
:returns: Updated ParticipantInstance
605605
:rtype: twilio.rest.api.v2010.account.conference.participant.ParticipantInstance

β€Žtwilio/rest/chat/v2/service/channel/member.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def create(self, identity, role_sid=values.unset,
4242
"""
4343
Create a new MemberInstance
4444
45-
:param unicode identity: A unique string identifier for this User in this Service. See the access tokens docs for more details. (πŸ“‡ PII MTL: 120 days)
45+
:param unicode identity: A unique string identifier for this User in this Service. See the access tokens docs for more details.
4646
:param unicode role_sid: The role to be assigned to this member. Defaults to the roles specified on the Service.
4747
:param unicode last_consumed_message_index: Field used to specify the last consumed Message index for the Channel for this Member. Should only be used when recreating a Member from a backup/separate source.
4848
:param datetime last_consumption_timestamp: ISO8601 time indicating the last datetime the Member consumed a Message in the Channel. Should only be used when recreating a Member from a backup/separate source
@@ -81,7 +81,7 @@ def stream(self, identity=values.unset, limit=None, page_size=None):
8181
is reached.
8282
The results are returned as a generator, so this operation is memory efficient.
8383
84-
:param unicode identity: A unique string identifier for this User in this Service. See the access tokens docs for more det B144 ails. (πŸ“‡ PII MTL: 120 days)
84+
:param unicode identity: A unique string identifier for this User in this Service. See the access tokens docs for more details.
8585
:param int limit: Upper limit for the number of records to return. stream()
8686
guarantees to never return more than limit. Default is no limit
8787
:param int page_size: Number of records to fetch per request, when not set will use
@@ -104,7 +104,7 @@ def list(self, identity=values.unset, limit=None, page_size=None):
104104
Unlike stream(), this operation is eager and will load `limit` records into
105105
memory before returning.
106106
107-
:param unicode identity: A unique string identifier for this User in this Service. See the access tokens docs for more details. (πŸ“‡ PII MTL: 120 days)
107+
:param unicode identity: A unique string identifier for this User in this Service. See the access tokens docs for more details.
108108
:param int limit: Upper limit for the number of records to return. list() guarantees
109109
never to return more than limit. Default is no limit
110110
:param int page_size: Number of records to fetch per request, when not set will use
@@ -123,7 +123,7 @@ def page(self, identity=values.unset, page_token=values.unset,
123123
Retrieve a single page of MemberInstance records from the API.
124124
Request is executed immediately
125125
126-
:param unicode identity: A unique string identifier for this User in this Service. See the access tokens docs for more details. (πŸ“‡ PII MTL: 120 days)
126+
:param unicode identity: A unique string identifier for this User in this Service. See the access tokens docs for more details.
127127
:param str page_token: PageToken provided by the API
128128
:param int page_number: Page Number, this value is simply for client state
129129
:param int page_size: Number of records to return, defaults to 50

0 commit comments

Comments
Β (0)
0