0

Im using mailsnake to intergrate my app with Mailchimp but im stuck here. I need to do a campaignSegmentTest and im doing it as follows:

conditions = [{'field':'FILTER', 'op':'eq', 'value':'test1'}]; 
print ms.campaignSegmentTest(list_id=self.list_id, options=[{'match':'all', 'conditions':conditions}])

I get the error msg: {u'code': 506, u'error': u'"match" must be "any" or "all"'}

What am i doing wrong?

here is the link to the api docs:

API link

4

1 に答える 1

0

「オプション」をリストではなく辞書として設定してみてください:

print ms.campaignSegmentTest(list_id=self.list_id, options={'match':'all', 'conditions':conditions})
于 2012-02-27T04:03:20.950 に答える