@@ -48,7 +48,7 @@ Getting a specific Queue Member
48
48
49
49
To retrieve information about a specific member in the queue, each
50
50
: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,
52
52
in which case :attr: `get ` will return a :class: `Member ` instance
53
53
representing that call, or the argument can be 'Front', in which case
54
54
:attr: `Get ` will return a :class: `Member ` instance representing the
@@ -64,10 +64,7 @@ first call in the queue.
64
64
QUEUE_SID = " QUaaaaaaaaaaaaa"
65
65
CALL_SID = " CAxxxxxxxxxxxxxx"
66
66
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
71
68
72
69
# Get the first call in the queue
73
70
print members.get(' Front' ).date_enqueued
@@ -96,10 +93,7 @@ default values are 'Front' and 'GET'
96
93
QUEUE_SID = " QUaaaaaaaaaaaaa"
97
94
98
95
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
103
97
104
98
# Dequeue the first call in the queue
105
99
print members.dequeue(' http://www.twilio.com/welcome/call' )
0 commit comments