我正在开发mailchimp api。我想创建一个段,但在创建段之前,我想测试一下条件。所以我尝试了下面的代码
{
"apikey": "xxxxxx7e0992xxx1e3bdxxxe03axxx342-us3",
"list_id": "ec3d67c617",
"options": {
"match": "all",
"conditions": [
{
"field" : "testgrouptitle",
"op" : "all",
"value" : "testgroupname"
}
]
}
}在postman(chrome)中执行这个命令后,我得到了这个错误
{
"status": "error",
"code": 506,
"name": "Invalid_Options",
"error": "op=\"all\" is invalid for field=\"testgrouptitle\" and value=\"testgroupname\"" }错误可能是不正确的条件。有人能告诉我json代码有什么问题吗?提前谢谢。
发布于 2014-07-04 02:06:51
如果要按组设置条件:
中使用的一样/()-请参见lists/interest-groupings()
有关更多信息,请参阅the documentation
https://stackoverflow.com/questions/22401201
复制相似问题