PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, September 6, 2022

[FIXED] How to fill campaign template with repeatablecontent via Mailchimp Marketing API

 September 06, 2022     mailchimp, mailchimp-api-v3.0, php     No comments   

Issue

I have campaing which uses template and I need to send this campaign via Marketing API with 5 (or more) latest job offers. I trying to find the way to do it.

I've tried to use Template Language on simple example.

I've added this block to template: <h3 mc:edit="article_title">Title</h3>

And then I try to update campaign content with PHP library mailchimp/marketing:3.0.27:

$campaign = $this->mailchimp->campaigns->setContent($campaignId, [
    'template' => [
        'id' => (int) $templateId,
        'sections' => [
            'article_title' => 'Test title',
        ],
    ],
]);

This request runs successfully, but I don't see any changes in response, campaing design or test email.

What I doing wrong? Or maybe there is another way to solve my problem?

I also tried to ask Mailchimp support about this problem, but got no answer.


Solution

The truth is that this feature was not implemented and will not work.



Answered By - Alexey Lopatin
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing