Mailchimp API not replacing mc:edit content sections (using ruby library)

前端 未结 5 907
太阳男子
太阳男子 2020-12-17 18:41

I\'m having a problem replacing mc:edit content areas in Mailchimp with the content that I provide.

The email is sent out to the subscribers, but none o

5条回答
  •  暖寄归人
    2020-12-17 19:18

    Following PHP code worked for me

    $api = new MCAPI($apikey);
    
    $type = 'regular';
    
    $opts['list_id'] = 'id';
    $opts['subject'] = 'The subject';
    /*
    */ $content = array('html_std_content00'=> $template); $retval = $api->campaignCreate($type, $opts, $content);

提交回复
热议问题