【问题标题】:Twilio - Disable SMS for a Specific Number Using the APITwilio - 使用 API 禁用特定号码的短信
【发布时间】:2016-09-29 18:21:40
【问题描述】:

在此页面上: https://support.twilio.com/hc/en-us/articles/223181528-Billing-for-incoming-SMS-messages

它说我们可以手动或使用 API 删除 SMS URL,但没有指向“API”的链接,我找不到应该调用哪个 API 端点来配置“WebHook URLS”?

如何使用 API 配置 URL WebHook?

【问题讨论】:

    标签: api twilio


    【解决方案1】:

    显然,您需要在以下位置调用 API: /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{IncomingPhoneNumberSid}

    example given with the Python API获取具体号码:

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

    要更新号码: 数字 =

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-04
      • 2017-06-29
      • 1970-01-01
      • 2017-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多