danesparza / MailChimp.NET

:envelope: .NET Wrapper for the MailChimp v2.0 API
MIT License
179 stars 119 forks source link

How to update campaign? #187

Open Asshen opened 8 years ago

Asshen commented 8 years ago

When I try to update the HTML in a section (region in a template), I get no errors, but the changes are not saved online... any ideas what I'm doing wrong?

sectionContent[ "mysection" ] = "<h1>Updated HTML</h1>";
CampaignUpdateResult cur = mc.UpdateCampaign( Id, "content", new { sections = sectionContent } );

I read somewhere that I should add "html_" before the section name sectionContent[ "html_mysection" ] = "<h1>Updated HTML</h1>"; is that correct? It doesn't work that way either...

Thank you. Kris.

Asshen commented 8 years ago

Meanwhile, I read somewhere that using the GetTemplateContent method you can only update the sections that are part of the template. Apparently you are not able to update the body content of your mails using that method.

Is that correct? If yes, then how can I update the body content of my mails?

Thank you.