Mailchimp 3.0 Get html template

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 does not return the actual file, it gives me a thumbnail of the template.

+5
source share
2 answers

There is currently no single API call to get the HTML source for the template, as in API 2.0. Below is the answer I received from MailChimp support on December 9, 2016:

Thank you for contacting us with your question. Currently, API 3.0 does not contain a direct effect that allows you to restore the "source" of the template. However, we continue to update API 3.0 in the hope of achieving parity with 2.0, so I will pass this feedback on to our team. At the same time, the only workaround available for extracting HTML in the same format would be to create a Campaign using the appropriate template, and then extract the source using the endpoint / campaign / {campaign_id} / content.

+6
source

You are looking for a default-content sub-object. Check out the documentation pages for this endpoint here .

0
source

Source: https://habr.com/ru/post/1245777/


All Articles