【问题标题】:mailchimp "Segment test" errormailchimp“分段测试”错误
【发布时间】:2014-04-19 12:28:53
【问题描述】:

我正在研究 mailchimp api。我想创建一个细分,但在创建细分之前我想测试条件。所以我尝试了这段代码

{
"apikey": "xxxxxx7e0992xxx1e3bdxxxe03axxx342-us3",
"list_id": "ec3d67c617",
"options": {
    "match": "all",
    "conditions": [
      {
        "field" : "testgrouptitle",
        "op" : "all",
        "value" : "testgroupname"
      }
    ]
  }
}

在邮递员(chrome)中触发此错误后,我收到此错误

{
"status": "error",
"code": 506,
"name": "Invalid_Options",
"error": "op=\"all\" is invalid for field=\"testgrouptitle\" and value=\"testgroupname\"" }

错误可能是不正确的条件。谁能告诉我json代码有什么问题? 提前致谢。

【问题讨论】:

    标签: json mailchimp


    【解决方案1】:

    如果要按组创建条件:

    • Field = "interests-X":其中 X 是来自 lists/interest-groupings() 的分组 ID
    • 有效操作(操作):一个/无/全部
    • 有效值:列表的兴趣组的逗号分隔字符串,就像您在 lists/subscribe() 中使用的一样 - 请参阅 lists/interest-groupings()

    更多信息,请参考the documentation

    【讨论】:

      猜你喜欢
      • 2023-02-07
      • 2023-03-11
      • 2011-05-12
      • 2015-11-30
      • 1970-01-01
      • 1970-01-01
      • 2015-08-27
      • 2012-03-25
      • 1970-01-01
      相关资源
      最近更新 更多