使用Mailchimp

时间:2015-09-03 07:37:48

标签: php api mailchimp

我正在尝试将用户添加到Mailchimp中的预先存在的列表中。我使用mailchimp-api-php

这是我的代码:

       <?php
         //path to mailchimp class
        require_once KL_DIR_PATH . 'admin/email_services/Mailchimp.php';           
        $MailChimp = new Mailchimp(xxxxxxxx);

             $result = $MailChimp->call('lists/members', array(
            'id' => 177xxxx,
            'email' => array('email' => rrr@gmail.com),
            'double_optin' => 0,
            'update_existing' => true,
            'replace_interests' => false,
            'send_welcome' => 0,
            'merge_vars' => array('FNAME' => zzzz, 'LNAME' =>ccc),
            ));
             print_r($result);
          ?>

然而,我收到以下错误

FATAL ERROR: UNCAUGHT EXCEPTION 'MAILCHIMP_HTTPERROR' WITH MESSAGE 'API CALL TO LISTS/MEMBERS FAILED: SSL CERTIFICATE PROBLEM: UNABLE TO GET LOCAL ISSUER CERTIFICATE' IN D:\WAMP\WWW\KUDANILEADS\WORDPRESS\WP-CONTENT\PLUGINS\KUDANILEADS\ADMIN\EMAIL_SERVICES\MAILCHIMP.PHP ON LINE 221

0 个答案:

没有答案