/// <summary> /// update /// </summary> /// /// <param name="options"> Update ExportConfiguration parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of ExportConfiguration </returns> public static ExportConfigurationResource Update(UpdateExportConfigurationOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = client.Request(BuildUpdateRequest(options, client)); return(FromJson(response.Content)); }
private static Request BuildUpdateRequest(UpdateExportConfigurationOptions options, ITwilioRestClient client) { return(new Request( HttpMethod.Post, Rest.Domain.Preview, "/BulkExports/Exports/" + options.PathResourceType + "/Configuration", postParams: options.GetParams() )); }
/// <summary> /// update /// </summary> /// /// <param name="pathResourceType"> The resource_type </param> /// <param name="enabled"> The enabled </param> /// <param name="webhookUrl"> The webhook_url </param> /// <param name="webhookMethod"> The webhook_method </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of ExportConfiguration </returns> public static async System.Threading.Tasks.Task <ExportConfigurationResource> UpdateAsync(string pathResourceType, bool?enabled = null, Uri webhookUrl = null, string webhookMethod = null, ITwilioRestClient client = null) { var options = new UpdateExportConfigurationOptions(pathResourceType) { Enabled = enabled, WebhookUrl = webhookUrl, WebhookMethod = webhookMethod }; return(await UpdateAsync(options, client)); }
/// <summary> /// update /// </summary> /// /// <param name="pathResourceType"> The resource_type </param> /// <param name="enabled"> The enabled </param> /// <param name="webhookUrl"> The webhook_url </param> /// <param name="webhookMethod"> The webhook_method </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of ExportConfiguration </returns> public static ExportConfigurationResource Update(string pathResourceType, bool?enabled = null, Uri webhookUrl = null, string webhookMethod = null, ITwilioRestClient client = null) { var options = new UpdateExportConfigurationOptions(pathResourceType) { Enabled = enabled, WebhookUrl = webhookUrl, WebhookMethod = webhookMethod }; return(Update(options, client)); }
/// <summary> /// Update a specific Export Configuration. /// </summary> /// <param name="options"> Update ExportConfiguration parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of ExportConfiguration </returns> public static async System.Threading.Tasks.Task <ExportConfigurationResource> UpdateAsync(UpdateExportConfigurationOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = await client.RequestAsync(BuildUpdateRequest(options, client)); return(FromJson(response.Content)); }