【问题标题】:Add sample image in template header in whatsapp cloud API在 whatsapp 云 API 的模板头中添加示例图像
【发布时间】:2022-07-13 14:41:26
【问题描述】:

我正在使用 WhatsApp 云 API 做一个项目。我需要创建一个带有媒体标题的模板。我创建了一个带有没有示例图像的媒体标题的模板,但它被拒绝了。所以我想在 Node JS 中创建一个带有示例图像的模板。

Template with a media header

Add sample image for a template

curl -X POST "https://graph.facebook.com/v14.0/{whatsapp-business-account-ID}/message_templates
  ?name={template-name}
  &language=en_US
  &category=TRANSACTIONAL,
  &components=[{
       type:BODY, 
       text:{message-text}
     }, 
     {
       type:HEADER, 
       format:IMAGE, 
       example:{header_handle:[{uploaded-image-file-url}]}
     }],
  &access_token={system-user-access-token}"

我想使用 Node JS 添加示例图像(不像第二张图片那样手动添加)。

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: node.js api cloud whatsapp


【解决方案1】:

你得到答案了吗?请告诉我

【讨论】:

    猜你喜欢
    • 2022-09-27
    • 2022-06-22
    • 2022-12-23
    • 1970-01-01
    • 2021-09-08
    • 2022-11-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多