Is there a way to get the actual html file in Mailchimp API 3.0?
I tried this method, /3.0/templates/{template-Id}?apikey={myAPIkey}
but it's not returning the actual file, it's giving me the thumbnail of the template.
There is currently no single API call to get the HTML source for a template as there is in API 2.0. Below is the reply I got from MailChimp support on December 9th, 2016:
Thanks for reaching out to us with your question. At this time, API 3.0 does not contain a direct corollary that allows for the "source" of a Template to be retrieved. However, we are continuing to update the 3.0 version of the API in hopes of achieving parity with 2.0, so I will be passing this feedback along internally to our team. In the meantime, the only workaround available for retrieving the HTML in the same format would be to create a Campaign using the Template in question and then retrieve the source using the /campaigns/{campaign_id}/content endpoint.
I solved this by update campaign content with template id and sections.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With