[英]Using different phone numbers in whatsapp business api account
Following to this documentation https://developers.facebook.com/docs/whatsapp/business-management-api/phone-numbers about whatsapp business accounts, it is possible to have multiple phone numbers in one account. 遵循本文档https://developers.facebook.com/docs/whatsapp/business-management-api/phone-numbers上有关whatsapp商业帐户的信息,一个帐户中可以有多个电话号码。 Does someone know how you can define from which number a message is send, when sending a message to a client? 有人知道您在向客户发送消息时如何定义从哪个号码发送消息吗? There is nothing in the api about sending messages. api中没有关于发送消息的任何内容。
following to the documentation you can read the phone numbers and their whatsapp id via 根据文档,您可以通过以下方式阅读电话号码及其whatsapp ID
curl -X GET \
'https://graph.facebook.com/v3.3/your-whatsapp-business-account-id/phone_numbers' \
-d 'access_token=your-access-token'
example result 示例结果
{
"data": [
{
"verified_name": "Jasper's Market",
"display_phone_number": "+1 631-555-5555",
"id": "1906385232743451",
"quality_rating": "GREEN"
},
{
"verified_name": "Jasper's Ice Cream",
"display_phone_number": "+1 631-555-5556",
"id": "1913623884432103",
"quality_rating": "NA"
}
],
}
I would expect something like a senderId field when sending a message. 我希望在发送消息时像senderId字段一样。
There are two parts to a WhatsApp Business API - WhatsApp Account on Business Manager (Facebook), and WhatsApp Business API Client (docker images). WhatsApp商业API分为两部分-业务管理器(Facebook)上的WhatsApp帐户和WhatsApp商业API客户端(docker图像)。
This is equivalent to having a separate cell phone for every separate phone number and WhatsApp app on that cell phone. 这相当于为每个单独的电话号码和该手机上的WhatsApp应用拥有一个单独的手机。
Follow the official WhatsApp documentation , to get more detailed information about the setup. 请遵循WhatsApp官方文档 ,以获取有关设置的更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.