简体   繁体   English

如何从whatsapp cloud api中的消息ID获取消息对象?

[英]how to get message object from message id in whatsapp cloud api?

I'm new to WhatsApp cloud API.我是 WhatsApp 云 API 的新手。 After sending a message to a particular number I get the following response from WhatsApp cloud API.向特定号码发送消息后,我从 WhatsApp 云 API 收到以下响应。

{
  "messages": [{
    "id": "gBEGkYiEB1VXAglK1ZEqA1YKPrU"
  }]
}  

My question is how do I get my message object back using this id?我的问题是如何使用这个 id 取回我的消息对象?

There is no specific endpoint to get the message back by it's Id, but You have to set up a Webhook endpoint to track the message status,没有特定的端点可以通过它的 Id 取回消息,但是您必须设置一个 Webhook 端点来跟踪消息状态,

See the whole process of how to set up Webhook,查看如何设置 Webhook 的全过程,
https://developers.facebook.com/docs/whatsapp/cloud-api/guides/set-up-webhooks https://developers.facebook.com/docs/whatsapp/cloud-api/guides/set-up-webhooks

Here is the demo of the Webhook endpoint,这是 Webhook 端点的演示,
https://developers.facebook.com/docs/whatsapp/sample-app-endpoints https://developers.facebook.com/docs/whatsapp/sample-app-endpoints

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

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