承接 wellcometrust/dotmailer-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

wellcometrust/dotmailer-php

最新稳定版本:v1.2.1

Composer 安装命令:

composer require wellcometrust/dotmailer-php

包简介

PHP Client library for the Dotmailer REST (v2) API

README 文档

README

PHP client library for the Dotmailer REST API (v2) described at https://developer.dotmailer.com/docs/

Installation

composer require wellcometrust/dotmailer-php

Usage

<?php

use Dotmailer\Adapter\GuzzleAdapter;
use Dotmailer\Dotmailer;

require 'vendor/autoload.php';

$adapter = GuzzleAdapter::fromCredentials('apiuser-XYZ@apiconnector.com', 'PASSWORD');
$dotmailer = new Dotmailer($adapter);

$addressBooks = $dotmailer->getAddressBooks();
print_r($addressBooks);

If you are using Symfony, you may choose to configure the service as follows, and then use throughout your application:

# app/config/services.yml

Dotmailer\Adapter:
   factory: ['Dotmailer\Adapter\GuzzleAdapter', fromCredentials]
   arguments: ['%dotmailer_username%', '%dotmailer_password%', '%dotmailer_uri%']

Dotmailer\Dotmailer:
   arguments: ['@Dotmailer\Adapter']

Coverage

Currently the following endpoints are covered:

  • Address books
    • Get address books
  • Campaigns
    • Get all campaigns
    • Get campaign
  • Contacts
    • Create contact
    • Delete contact
    • Update contact
    • Add contact to address book
    • Delete contact from address book
    • Get contact by email
    • Get contact address books
    • Get unsubscribed contacts since date
    • Unsubscribe contact
    • Resubscribe contact
  • Contact data fields
    • Create contact data field
    • Delete contact data field
  • Programs
    • Get programs
    • Create program enrolment
  • Transactional email
    • Send transactional email
    • Send transactional email using a triggered campaign

统计信息

  • 总下载量: 22.37k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 14
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-11