/// <summary> /// update /// </summary> /// <param name="options"> Update Configuration parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of Configuration </returns> public static ConfigurationResource Update(UpdateConfigurationOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = client.Request(BuildUpdateRequest(options, client)); return(FromJson(response.Content)); }
private static Request BuildUpdateRequest(UpdateConfigurationOptions options, ITwilioRestClient client) { return(new Request( HttpMethod.Post, Rest.Domain.FlexApi, "/v1/Configuration", postParams: options.GetParams() )); }
/// <summary> /// update /// </summary> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of Configuration </returns> public static async System.Threading.Tasks.Task <ConfigurationResource> UpdateAsync(ITwilioRestClient client = null) { var options = new UpdateConfigurationOptions(); return(await UpdateAsync(options, client)); }
/// <summary> /// update /// </summary> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of Configuration </returns> public static ConfigurationResource Update(ITwilioRestClient client = null) { var options = new UpdateConfigurationOptions(); return(Update(options, client)); }
/// <summary> /// update /// </summary> /// <param name="options"> Update Configuration parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of Configuration </returns> public static async System.Threading.Tasks.Task <ConfigurationResource> UpdateAsync(UpdateConfigurationOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = await client.RequestAsync(BuildUpdateRequest(options, client)); return(FromJson(response.Content)); }