Retrieve a Participant
Use this endpoint for the Conference Participants method to retrieve a single participant.
Parameters
Parameter | Description |
---|---|
AccountSid Required | The unique identifier for the account that created this conference. |
CallSid Required | The unique identifier for the Participant call connected to this conference. |
ConferenceSid Required | The unique identifier for the conference this participant is in. |
Request: Retrieve a Single Participant
- cURL
- Node.js
- C#
- Python
- Ruby
curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json \
-X GET \
-u "YourProjectID:YourAuthToken"
const { RestClient } = require('@signalwire/compatibility-api')
const client = RestClient('YourProjectID', 'YourAuthToken', { signalwireSpaceUrl: 'example.signalwire.com' })
client.conferences('ConferenceSid')
.participants('CallSid')
.fetch()
.then(participant => console.log(participant.callSid))
.done();
using System;
using System.Collections.Generic;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Conference;
class Program
{
static void Main(string[] args)
{
TwilioClient.Init("YourProjectID", "YourAuthToken", new Dictionary<string, object> { ["signalwireSpaceUrl"] = "{SPACE}.signalwire.com" });
var participant = ParticipantResource.Fetch(
pathConferenceSid: "ConferenceSid",
pathCallSid: "CallSid"
);
Console.WriteLine(participant.CallSid);
}
}
from signalwire.rest import Client as signalwire_client
client = signalwire_client("YourProjectID", "YourAuthToken", signalwire_space_url = 'example.signalwire.com')
participant = client.conferences('ConferenceSid') \
.participants('CallSid') \
.fetch()
print(participant.call_sid)
require 'signalwire/sdk'
@client = Signalwire::REST::Client.new 'YourProjectID', 'YourAuthToken', signalwire_space_url: "example.signalwire.com"
participant = @client.conferences('ConferenceSid')
.participants('CallSid')
.fetch
puts participant.call_sid