Twilio - 特定号码使用API​​

问题描述:

在此页面禁用短信: https://support.twilio.com/hc/en-us/articles/223181528-Billing-for-incoming-SMS-messagesTwilio - 特定号码使用API​​

它说,我们可以手动删除短信网址或与API,但没有链接到“API”与我找不到我应该调用哪个API端点来配置'WebHook URLS'?

如何使用API​​配置URL WebHook?

显然,你需要调用API为: /2010-04-01 /会计/ {} AccountSid/IncomingPhoneNumbers/{} IncomingPhoneNumberSid

example given with the Python API得到具体数目:

number = client.phone_numbers.get("PN2a0747eba6abf96b7e3c3ff0b4530f6e") 

更新编号: number =

client.phone_numbers.update("PN2a0747eba6abf96b7e3c3ff0b4530f6e", voice_url="http://demo.twilio.com/docs/voice.xml", 
    sms_url="http://demo.twilio.com/docs/sms.xml")