mailchimp-api-v3.0

Adding subscribers to a list using Mailchimp's API v3

六月ゝ 毕业季﹏ 提交于 2019-12-27 18:22:26
问题 I'm trying to add users to a list I've created in Mailchimp but I can't find any code examples anywhere. I've tried figuring out how to use the API but I'm very much a "Look at an example and learn" kind of person. I've tried using version 2 of the API but nothing seems to be working despite working from examples on the net and Mailchimp says the following about earlier versions of their API on their website: Versions 2.0 and earlier are deprecated. Only minimal support—bug fixes, security

Adding subscribers to a list using Mailchimp's API v3

删除回忆录丶 提交于 2019-12-27 18:22:19
问题 I'm trying to add users to a list I've created in Mailchimp but I can't find any code examples anywhere. I've tried figuring out how to use the API but I'm very much a "Look at an example and learn" kind of person. I've tried using version 2 of the API but nothing seems to be working despite working from examples on the net and Mailchimp says the following about earlier versions of their API on their website: Versions 2.0 and earlier are deprecated. Only minimal support—bug fixes, security

Decode text response from API in Python 3.6

被刻印的时光 ゝ 提交于 2019-12-24 14:14:51
问题 I am trying to extract data from mailchimp export api, which returns responses based on the following specifications: Returns: Parameter - text Description: a plain text dump of JSON objects. The first row is a header row. Each additional row returned is an individual JSON object. Rows are delimited using a newline (\n) marker, so implementations can read in a single line at a time, handle it, and move on. To get the data I am using: response = requests.get(urldetails).text If I use .json()

Mailchimp - how can I tell if a user has unsubscribed themselves?

橙三吉。 提交于 2019-12-24 03:15:31
问题 So they've clicked the unsubscribe link in a newsletter. In their profile it says, for example: This person unsubscribed on Mar 24, 2017 2:40 pm After receiving "Newsletter Test#6" Great, but how can I tell programmatically, via the API, if someone has unsubscribed themselves? Is it even possible? The reason I'm asking is because you can't delete someone who has unsubscribed themselves. If you try, their data will be scrubbed but the email address will stay in your list. Furthermore, if you

How to create list member with ADDRESS using Mailchimp API v3

两盒软妹~` 提交于 2019-12-23 11:56:09
问题 The ADDRESS is a Merge Field but the documentation (http://developer.mailchimp.com/documentation/mailchimp/reference/lists/members/) is not clear on how to pass it to the API, since it has sub fields for street, zip, city etc. Does anybody have an example how to do this? 回答1: This JSON works: { "addr1" : "first line", "addr2" : "second line", "city" : "city", "state": "state", "zip": "zip code", "country": "country" } It's documented in schema here: https://us1.api.mailchimp.com/schema/3.0

Setting Mailchimp campaign content html not working

梦想与她 提交于 2019-12-23 04:05:35
问题 I tried to update my campaign html content using mailchimp api: /campaigns/{campaign_id}/content You can find more information about this api here: https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/content/# Before sending a campaign, I tried to get campaign content html, modified it and then set campaign content html using above api. I just simply use BeautifulSoup to append a new tag to content body: content.body.append(BeautifulSoup('<p>Mailchimp is freaking

MailChimp API v3 campaign content template sections

泪湿孤枕 提交于 2019-12-21 09:16:39
问题 I'm referring to this page in the API documentation when trying to programatically create content for a MailChimp campaign. I have the following section in my template and I'm trying to change its content: <td mc:edit="body">To be replaced by API</td> and here is the JSON request: {"template":{"id":"170189","sections":{"body":"testing content"}}} But the content isn't being changed! Everything else is working, eg template 170189 is being loaded into the campaign. Any hints? 回答1: Fixed - mc

Mailchimp api v3 - can't create segment based on a TEXT merge field

醉酒当歌 提交于 2019-12-20 02:58:13
问题 I'm trying to create a segment based on a new merge field of type TEXT that I just created, by using condition_type = TextMerge since it seems to be the only option from their documentation that matches my field: http://developer.mailchimp.com/documentation/mailchimp/reference/lists/segments/#create-post_lists_list_id_segments However, the description for TextMerge looks identical to EmailAddress. To be more specific they both apply only for the EMAIL / MERGE0 field. TextMerge vs EmailAddress

MailChimp API 3.0 batch/bulk subscribe

半世苍凉 提交于 2019-12-19 04:42:45
问题 For MailChimp API 2.0 there was a method 'batch-subscribe', to send in an array of email addresses to be added to a specific list in MailChimp. How to implement this in the new Rest Architecture based MailChimp API 3.0? See https://github.com/mailchimp/APIv3-examples/wiki/Overview It says it would work with array of objects But by the schema it only accepts an object Schema https://us9.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json 回答1: The page you're linking to look like docs

MailChimp API 3.0 batch/bulk subscribe

时间秒杀一切 提交于 2019-12-19 04:42:13
问题 For MailChimp API 2.0 there was a method 'batch-subscribe', to send in an array of email addresses to be added to a specific list in MailChimp. How to implement this in the new Rest Architecture based MailChimp API 3.0? See https://github.com/mailchimp/APIv3-examples/wiki/Overview It says it would work with array of objects But by the schema it only accepts an object Schema https://us9.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json 回答1: The page you're linking to look like docs