简体   繁体   English

如何从 API 请求中获取 Twilio 帐户验证号?

[英]How to get Twilio account verification number from an API request?

I am facing an issue in JavaScript: I want to get a Twilio account verification number from an API request.我在 JavaScript 中遇到了一个问题:我想从 API 请求中获取 Twilio 帐户验证号。

Twilio Account SID: Axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Twilio Auth Token: exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I read the Twilio documentation but I can't find any such API request.我阅读了Twilio 文档,但找不到任何此类 API 请求。 Which API request should I use to get Twilio account verification number??我应该使用哪个 API 请求来获取 Twilio 帐户验证号??

It looks like doing an HTTPS GET request to https://verify.twilio.com/v2/Services with your account SID and Auth Token returns an object with an array of Verify Services.看起来像使用您的帐户 SID 向https://verify.twilio.com/v2/Services发出 HTTPS GET 请求,而 Auth Token 返回一个带有验证服务数组的对象。 This doesn't appear to be documented.这似乎没有记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM