Identify Whatsapp phone number when listing Twilio phone number

半城伤御伤魂 提交于 2021-01-29 06:25:29

问题


When listing our Twilio phone numbers using the Twilio REST API (https://www.twilio.com/docs/sms/services/api/phonenumber-resource), a Whatsapp phone number appears as any other phone number.

There doesn't seem to be a specific capability for Whatsapp. We can only see voice, sms, mms and fax capabilities:

"capabilities": {
                "voice": true, 
                "sms": false, 
                "mms": false, 
                "fax": true
            }, 

What info can we use to identify a phone number as a Whatsapp phone number when using the Twilio REST API?

We tried using the Node Twilio module (v2.9.2 and v3.33.2).

Thanks,


回答1:


Twilio developer evangelist here.

I'm sorry to say that there is not currently a way to determine if a number in your account is enabled for WhatsApp. I am seeing if the channels and phone numbers team can collaborate to enable this information in the API, but it is not connected right now.



来源:https://stackoverflow.com/questions/57316100/identify-whatsapp-phone-number-when-listing-twilio-phone-number

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!