小编Kau*_*Roy的帖子

Whatsapp API (#132000) 参数数量与预期参数数量不匹配

我在 Whatsapp API 中创建了以下模板。我想在API调用中设置参数值。正确的有效负载是多少?我一直在关注元文档并尝试,但每次我都会出错。请帮忙。

模板:

您订购的 # {{1}} 已成功收到。

在此输入图像描述

我使用了这个有效负载:

{
"messaging_product": "whatsapp", 
"to": "918456712349", 
"type": "template", 
"template": { 
    "name": "order_notification",
    "language": { 
        "code": "en_US" 
    }
},
"components": [
    {
        "type": "body",
        "parameters": [
            {
                "type": "text",
                "text": "135345345"
            }
        ]
    }
]
}
Run Code Online (Sandbox Code Playgroud)

但我仍然收到此错误

{
"error": {
    "message": "(#132000) Number of parameters does not match the expected number of params",
    "type": "OAuthException",
    "code": 132000,
    "error_data": {
        "messaging_product": "whatsapp",
        "details": "body: number of localizable_params (0) does not match the expected …
Run Code Online (Sandbox Code Playgroud)

message payload whatsapp

9
推荐指数
2
解决办法
1万
查看次数

标签 统计

message ×1

payload ×1

whatsapp ×1