adterminal/mailchimp-api
Composer 安装命令:
composer require adterminal/mailchimp-api
包简介
Simplest MailChimp API v3 wrapper
README 文档
README
Simplest MailChimp API v3 wrapper, in PHP.
This lets you get from the MailChimp API docs to the code as directly as possible.
Requires PHP 5.3 and a pulse. Abstraction is for chimps.
Installation
You can install mailchimp-api v3 dev branch using Composer:
composer require adterminal/mailchimp-api:dev-master
You will then need to:
- run
composer installto get these dependencies added to your vendor directory - add the autoloader to your application with this line:
require("vendor/autoload.php")
Alternatively you can just download the MailChimp.php file and include it manually:
include('./Mailchimp.php');
Examples
List all the mailing lists (lists method)
use \Adterminal\MailChimp\MailChimp; $MailChimp = new MailChimp('abc123abc123abc123abc123abc123-us1'); print_r($MailChimp->get('lists'));
Subscribe someone to a list and an interest group
use \Adterminal\MailChimp\MailChimp; $MailChimp = new MailChimp('abc123abc123abc123abc123abc123-us1'); $result = $MailChimp->post('lists/b1234346/members', array( 'email_address' => 'davy@example.com', 'status' => 'subscribed', 'merge_fields' => array('FNAME'=>'Davy', 'LNAME'=>'Jones'), 'interests' => array( '2s3a384h' => true ) )); print_r($result);
统计信息
- 总下载量: 685
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-30