Exemple #1
0
        public static async Task <ShortCodeResource> UpdateShortCodeAsync(ITwilioRestClient client, string shortCodeSid, string accountSid = null, string friendlyName = null, System.Uri smsUrl = null, Twilio.Http.HttpMethod smsMethod = null, System.Uri smsFallbackUrl = null, Twilio.Http.HttpMethod smsFallbackMethod = null)
        {
            var options = new UpdateShortCodeOptions(shortCodeSid)
            {
                PathAccountSid    = accountSid,
                FriendlyName      = friendlyName,
                SmsUrl            = smsUrl,
                SmsMethod         = smsMethod,
                SmsFallbackUrl    = smsFallbackUrl,
                SmsFallbackMethod = smsFallbackMethod
            };

            return(await ShortCodeResource.UpdateAsync(options, client));
        }