/// <summary> /// fetch /// </summary> /// <param name="pathRoomSid"> The SID of the room with the Participant resource to fetch </param> /// <param name="pathSid"> The SID that identifies the resource to fetch </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of Participant </returns> public static ParticipantResource Fetch(string pathRoomSid, string pathSid, ITwilioRestClient client = null) { var options = new FetchParticipantOptions(pathRoomSid, pathSid); return(Fetch(options, client)); }
/// <summary> /// fetch /// </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)); }