コード例 #1
0
        /// <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));
        }
コード例 #2
0
 private static Request BuildUpdateRequest(UpdateConfigurationOptions options, ITwilioRestClient client)
 {
     return(new Request(
                HttpMethod.Post,
                Rest.Domain.FlexApi,
                "/v1/Configuration",
                postParams: options.GetParams()
                ));
 }
コード例 #3
0
        /// <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));
        }
コード例 #4
0
        /// <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));
        }
コード例 #5
0
        /// <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));
        }