定制 maildrop/maildrop-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-10