8000 documentation fixes · thinkingserious/twilio-python@92f51e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 92f51e8

Browse files
committed
documentation fixes
1 parent adeeeb9 commit 92f51e8

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

docs/usage/queues.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Getting a specific Queue Member
4848

4949
To retrieve information about a specific member in the queue, each
5050
:class:`Members` has a :attr:`get` method. :attr:`get` accepts one
51-
argument. The argument can either be a call_sid thats in the queue,
51+
argument. The argument can either be a `call_sid` thats in the queue,
5252
in which case :attr:`get` will return a :class:`Member` instance
5353
representing that call, or the argument can be 'Front', in which case
5454
:attr:`Get` will return a :class:`Member` instance representing the
@@ -64,10 +64,7 @@ first call in the queue.
6464
QUEUE_SID = "QUaaaaaaaaaaaaa"
6565
CALL_SID = "CAxxxxxxxxxxxxxx"
6666
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
67-
members = client.queues.get(QUEUE_SID).queue_members.list()
68-
69-
if len(members) == 0:
70-
return
67+
members = client.queues.get(QUEUE_SID).queue_members
7168
7269
# Get the first call in the queue
7370
print members.get('Front').date_enqueued
@@ -96,10 +93,7 @@ default values are 'Front' and 'GET'
9693
QUEUE_SID = "QUaaaaaaaaaaaaa"
9794
9895
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
99-
members = client.queues.get(QUEUE_SID).queue_members.list()
100-
101-
if len(members) == 0:
102-
return
96+
members = client.queues.get(QUEUE_SID).queue_members
10397
10498
# Dequeue the first call in the queue
10599
print members.dequeue('http://www.twilio.com/welcome/call')

0 commit comments

Comments
 (0)
0