/// <summary> /// Fetch a specific Participant. /// </summary> /// /// <param name="options"> Fetch Participant parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of Participant </returns> public static async System.Threading.Tasks.Task <ParticipantResource> FetchAsync(FetchParticipantOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = await client.RequestAsync(BuildFetchRequest(options, client)); return(FromJson(response.Content)); }
/// <summary> /// Fetch a specific Participant. /// </summary> /// /// <param name="pathServiceSid"> Service Sid. </param> /// <param name="pathSessionSid"> Session Sid. </param> /// <param name="pathSid"> A string that uniquely identifies this Participant. </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of Participant </returns> public static ParticipantResource Fetch(string pathServiceSid, string pathSessionSid, string pathSid, ITwilioRestClient client = null) { var options = new FetchParticipantOptions(pathServiceSid, pathSessionSid, pathSid); return(Fetch(options, client)); }
/// <summary> /// Fetch a specific Participant. /// </summary> /// /// <param name="pathServiceSid"> Service Sid. </param> /// <param name="pathSessionSid"> Session Sid. </param> /// <param name="pathSid"> A string that uniquely identifies this Participant. </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of Participant </returns> public static async System.Threading.Tasks.Task <ParticipantResource> FetchAsync(string pathServiceSid, string pathSessionSid, string pathSid, ITwilioRestClient client = null) { var options = new FetchParticipantOptions(pathServiceSid, pathSessionSid, pathSid); return(await FetchAsync(options, client)); }