Test telephone numbers for Twilio

前端 未结 2 1990
春和景丽
春和景丽 2021-02-19 06:01

Does Twilio have any \"test\" telephone numbers that I can use to emulate outbound calls? For example, I\'d like to be able to test my app to the fullest, getting back asynchron

2条回答
  •  逝去的感伤
    2021-02-19 06:29

    Twilio evangelist here.

    Have you looked at using Test Credentials? These are a special set of credentials and magic phone numbers that you can use to tell Twilio via the REST API to emulate things like making an outbound phone call. Using the magic phone numbers you can get Twilio to return specific responses (like trying to dial an international phone number without the right permissions).

    For testing webhook endpoints (the URL's in your webhook that Twilio is going to make its HTTP requests to), you can use the same testing techniques you would to test a normal web app.

提交回复
热议问题