docs/usage/queues.rst in twilio-ruby-3.11.0 vs docs/usage/queues.rst in twilio-ruby-3.11.1
- old
+ new
@@ -20,11 +20,11 @@
# To find these visit https://www.twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
- @queues = client.queues.list()
+ @queues = @client.account.queues.list()
@queues.each do |queue|
puts queue.sid
end
@@ -42,11 +42,11 @@
# To find these visit https://www.twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
- @queue = @client.queues.get("QU123")
+ @queue = @client.account.queues.get("QU123")
@queue.members.list().each do |member|
print member.call_sid
end
@@ -73,11 +73,11 @@
@client = Twilio::REST::Client.new account_sid, auth_token
queue_sid = "QUAAAAAAAAAAAAA"
call_sid = "CAXXXXXXXXXXXXXX"
- @members = @client.queues.get(queue_sid).members
+ @members = @client.account.queues.get(queue_sid).members
# Get the first call in the queue
puts members.front.date_enqueued
# Get the call with the given call sid in the queue
@@ -104,9 +104,9 @@
@client = Twilio::REST::Client.new account_sid, auth_token
queue_sid = "QUAAAAAAAAAAAAA"
- @members = @client.queues.get(queue_sid).members
+ @members = @client.account.queues.get(queue_sid).members
# Dequeue the first call in the queue
puts @members.dequeue('http://www.twilio.com/welcome/call')