【问题标题】:Sending bulk-messages using viber-api and node.js through web app通过 web 应用程序使用 viber-api 和 node.js 发送批量消息
【发布时间】:2017-02-28 22:38:19
【问题描述】:

有什么方法可以集成 viber 的 api 以通过网络应用向 viber 联系人发送批量消息? 我有一个经过 SSL 认证的网络应用程序和一个 viber 的公共帐户。 这是他们的 api:https://developers.viber.com/api/nodejs-bot-api/index.html

我似乎找不到可以让我向多个用户发送消息的代码。我可以使用什么帮助?谢谢你。

【问题讨论】:

    标签: javascript node.js viber


    【解决方案1】:

    迟到总比没有好)2019 年我们使用这个 API https://developers.viber.com/rest/

    广播消息

    资源网址:

    https://chatapi.viber.com/pa/broadcast_message

    {
       "sender":{
          "name":"John McClane",
          "avatar":"http://avatar.example.com"
       },
       "min_api_version":2,
       "type":"rich_media",
       "broadcast_list":[
          "pttm25kSGUo1919sBORWyA==",
          "2yBSIsbzs7sSrh4oLm2hdQ==",
          "EGAZ3SZRi6zW1D0uNYhQHg==",
          "kBQYX9LrGyF5mm8JTxdmpw=="
       ],
       "type":"text",
       "text":"Hello World!"
    }
    

    发布到公共聊天

    资源网址:

    https://chatapi.viber.com/pa/post

    发布数据:

    {
       "from":"01234567890A=",
       "sender":{
          "name":"John McClane",
          "avatar":"http://avatar.example.com"
       },
       "type":"text",
       "text":"Hello World!"
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-11
      • 1970-01-01
      • 1970-01-01
      • 2021-09-10
      • 1970-01-01
      • 2011-10-02
      • 2013-01-11
      • 2012-07-25
      相关资源
      最近更新 更多