在pushwoosh

时间:2015-08-18 14:12:25

标签: pushwoosh

下一个代码是为所有设备发送消息,我们需要发送标签列表

{
  "request": {
      "application": "APPLICATION_CODE",
      "auth": "API_ACCESS_TOKEN",
      "notifications": [{
          "send_date": "now",  
          "ignore_user_timezone": true,  
          "content": "Hello world!"
      }]
  }
}

当我需要为标签列表发送消息时,JSON格式是什么(&#34; tag1&#34;,&#34; tag2&#34;,&#34; tag3&#34;)< / p>

1 个答案:

答案 0 :(得分:0)

根据Pushwoosh createMessage API请求文档。您应该添加到通知对象

  

“条件”:[[“Country”,“EQ”,“BR”],[“Language”,“EQ”,“pt”]]

并且完整请求可能看起来像

{
  "request": {
      "application": "APPLICATION_CODE",
      "auth": "API_ACCESS_TOKEN",
      "notifications": [{
          "send_date": "now",  
          "ignore_user_timezone": true,  
          "content": "Hello world!",
          "conditions": [["Country", "EQ", "BR"],["Language", "EQ", "pt"]]
      }]
  }
}
相关问题