/// <summary> /// update /// </summary> /// <param name="options"> Update FlowTestUser parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of FlowTestUser </returns> public static FlowTestUserResource Update(UpdateFlowTestUserOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = client.Request(BuildUpdateRequest(options, client)); return(FromJson(response.Content)); }
/// <summary> /// update /// </summary> /// <param name="pathSid"> The sid </param> /// <param name="testUsers"> The test_users </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of FlowTestUser </returns> public static async System.Threading.Tasks.Task <FlowTestUserResource> UpdateAsync(string pathSid, List <string> testUsers, ITwilioRestClient client = null) { var options = new UpdateFlowTestUserOptions(pathSid, testUsers); return(await UpdateAsync(options, client)); }
private static Request BuildUpdateRequest(UpdateFlowTestUserOptions options, ITwilioRestClient client) { return(new Request( HttpMethod.Post, Rest.Domain.Studio, "/v2/Flows/" + options.PathSid + "/TestUsers", postParams: options.GetParams() )); }
/// <summary> /// update /// </summary> /// <param name="pathSid"> The sid </param> /// <param name="testUsers"> The test_users </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of FlowTestUser </returns> public static FlowTestUserResource Update(string pathSid, List <string> testUsers, ITwilioRestClient client = null) { var options = new UpdateFlowTestUserOptions(pathSid, testUsers); return(Update(options, client)); }
/// <summary> /// update /// </summary> /// <param name="options"> Update FlowTestUser parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of FlowTestUser </returns> public static async System.Threading.Tasks.Task <FlowTestUserResource> UpdateAsync(UpdateFlowTestUserOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = await client.RequestAsync(BuildUpdateRequest(options, client)); return(FromJson(response.Content)); }