8000 Merge in version 3.3.7 · Web5design/twilio-python@82d2e15 · GitHub
[go: up one dir, main page]

Skip to content

Commit 82d2e15

Browse files
committed
Merge in version 3.3.7
2 parents d5b8028 + fb52302 commit 82d2e15

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ parts
1010
bin
1111
develop-eggs
1212
.installed.cfg
13+
scratch
14+
env
1315

1416
# Installer logs
1517
pip-log.txt

docs/usage/accounts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Use the :meth:`Account.update` to modify one of your accounts. Right now the onl
2323
AUTH_TOKEN = "YYYYYYYYYYYYYYYYYY"
2424
2525
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
26-
account = client.accounts.get()
27-
account.update(name="My Awesome Account")
26+
account = client.accounts.get(ACCOUNT_SID)
27+
account.update(friendly_name="My Awesome Account")
2828
2929
Creating Subaccounts
3030
----------------------

docs/usage/basics.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The :class:`TwilioRestClient` gives you access to various list resources. :meth:
5050
AUTH_TOKEN = "YYYYYYYYYYYYYYYYYY"
5151
5252
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
53-
resources = client.phone_calls.list()
53+
resources = client.calls.list()
5454
5555
:meth:`resource.ListResource.list` accepts paging arguments. The following will return page 3 with page size of 25.
5656

@@ -63,7 +63,7 @@ The :class:`TwilioRestClient` gives you access to various list resources. :meth:
6363
AUTH_TOKEN = "YYYYYYYYYYYYYYYYYY"
6464
6565
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
66-
resources = client.phone_calls.list(page=3, page_size=25)
66+
resources = client.calls.list(page=3, page_size=25)
6767
6868
6969
Listing All Resources

twilio/twiml.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def xml(self):
8181
return el
8282

8383
def append(self, verb):
84-
print self.nestables
8584
if not self.nestables or verb.name not in self.nestables:
8685
raise TwimlException("%s is not nestable inside %s" % \
8786
(verb.name, self.name))

twilio/util.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ def compute_signature(self, uri, params):
3030
s += k + v
3131

3232
# compute signature and compare signatures
33-
3433
mac = hmac.new(self.token, s.encode("utf-8"), sha1)
3534
computed = base64.b64encode(mac.digest())
3635

37-
# print base64.b64decode(computed.strip())
38-
# print base64.b64decode(computed.strip()).decode("utf-8")
39-
4036
return computed.strip()
4137

4238
def validate(self, uri, params, signature):

0 commit comments

Comments
 (0)
0