Retrieve a Queue Member
Use this endpoint for the Queue Members method to retrieve a single queue member.
Parameters
Parameter | Description |
---|---|
CallSid Required | Retrieve a queue member by their unique identifier. |
Front Optional | Retrieve the member that is at the front of the queue. |
Request
Retrieve a single queue member.
- cURL
- Node.js
- C#
- Python
- Ruby
curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.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('CallSid')
.fetch()
.then(member => console.log(member.callSid))
.done();
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 member = MemberResource.Fetch(
pathQueueSid: "QueueSid",
pathCallSid: "CallSid"
);
Console.WriteLine(member.CallSid);
}
}
from signalwire.rest import Client as signalwire_client
client = signalwire_client("YourProjectID", "YourAuthToken", signalwire_space_url = 'example.signalwire.com')
member = client.queues('QueueSid') \
.members('CallSid') \
.fetch()
print(member.call_sid)
require 'signalwire/sdk'
@client = Signalwire::REST::Client.new 'YourProjectID', 'YourAuthToken', signalwire_space_url: "example.signalwire.com"
member = @client.queues('QueueSid')
.members('CallSid')
.fetch
puts member.call_sid