maildrop/maildrop-php
最新稳定版本:1.4.0
Composer 安装命令:
composer require maildrop/maildrop-php
包简介
The official Maildrop SDK provides methods for all API functions.
README 文档
README
Installation
The SDK is available on Packagist. To install it, you will need to be using Composer in your project.
composer require maildrop/maildrop-php
Usage
You should always use Composer autoloader in your application to automatically load your dependencies. All the examples below assume you've already included this in your file:
require 'vendor/autoload.php'; use Maildrop\Maildrop;
Here's how to add a contact to one of your contact list using the SDK:
// First, instantiate the SDK with the ClientApiKey of one of your account // See https://doc.maildrop.fr/-t44.html#Trouver_ClientApiKey to find the right ClientApiKey Maildrop::setDefaultClientApiKey("client-apikey"); $md = new Maildrop(); // Now, add a new contact to a contact list $md->subscribers()->add([ 'listid' => 'a7fb155366727c500406344b5f196f3a', 'email' => 'jack@example.com' ]);
All usage examples
You will find more examples in the /examples directory in this repo.
You will find more documentation at /doc and on https://doc.maildrop.fr.
统计信息
- 总下载量: 111
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-10