Retrieve Members Waiting in a Queue
Use this endpoint for the Queues method to read the list of members that are currently waiting in a call queue.
Parameters
Parameter |
---|
No Parameters |
Request
- cURL
- Node.js
- C#
- Python
- Ruby
curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json \
-X GET \
-u "YourProjectID:YourAuthToken"
const { RestClient } = require('@signalwire/compatibility-api')
const client = RestClient('YourProjectID', 'YourAuthToken', { signalwireSpaceUrl: 'example.signalwire.com' })
client.queues('QueueSid')
.members
.each(members => console.log(members.callSid));
using System;
using System.Collections.Generic;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Queue;
class Program
{
static void Main(string[] args)
{
TwilioClient.Init("YourProjectID", "YourAuthToken", new Dictionary<string, object> { ["signalwireSpaceUrl"] = "{SPACE}.signalwire.com" });
var members = MemberResource.Read(
pathSid: "b3877c40-da60-4998-90ad-b792e98472qu"
);
foreach(var record in members)
{
Console.WriteLine(record.CallSid);
}
}
}
from signalwire.rest import Client as signalwire_client
client = signalwire_client("YourProjectID", "YourAuthToken", signalwire_space_url = 'example.signalwire.com')
members = client.queues('b3877c40-da60-4998-90ad-b792e98472qu').members.list()
for record in members:
print(record.call_sid)
require 'signalwire/sdk'
@client = Signalwire::REST::Client.new 'YourProjectID', 'YourAuthToken', signalwire_space_url: "example.signalwire.com"
members = @client.queues('b3877c40-da60-4998-90ad-b792e98472qu').members.list
members.each do |record|
puts record.call_sid
end