I am in the process of migrating from MailChimp API 2.0 to 3.0
One of the features I used in 2.0 was to retrieve the HTML source from a template https://apidocs.mailchimp.com/api/2.0/templates/info.php so I could preview how a proposed email would look, without having to create a campaign first.
There doesn't appear to be a way to do this with API 3.0
I just answered this question over here - mailchimp 3.0 Get template in html form
There's no direct way of getting the source of a template (yet), but you can create a campaign with your templates and then get the source of that campaign.
http://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/content/
You can get Mailchimp template HTML source using API 2.0
require_once('..includes/Mailchimp/Mailchimp.php');
$apiKey = "apikey-usx";
$mailchimpObj = new Mailchimp($apiKey);
printr($mailchimpObj->template['your template id here']);
echo "<pre>";
See the working API: https://devsnook.com/get-mailchimp-template-html-content/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.