2017 © Pedro Peláez
 

library dotmailer-php

PHP Client library for the Dotmailer REST (v2) API

image

wellcometrust/dotmailer-php

PHP Client library for the Dotmailer REST (v2) API

  • Wednesday, June 13, 2018
  • by amneale
  • Repository
  • 12 Watchers
  • 3 Stars
  • 1,777 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 169 % Grown

The README.md

Dotmailer REST API (v2) PHP client Build Status

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

Installation

composer require wellcometrust/dotmailer-php, (*2)

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:, (*3)

# 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:, (*4)

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

The Versions

13/06 2018

dev-master

9999999-dev

PHP Client library for the Dotmailer REST (v2) API

  Sources   Download

MIT

The Requires

 

The Development Requires

13/06 2018

v1.2.0

1.2.0.0

PHP Client library for the Dotmailer REST (v2) API

  Sources   Download

MIT

The Requires

 

The Development Requires

13/06 2018

v1.1.1

1.1.1.0

PHP Client library for the Dotmailer REST (v2) API

  Sources   Download

MIT

The Requires

 

The Development Requires

13/04 2018

v1.1.0

1.1.0.0

PHP Client library for the Dotmailer REST (v2) API

  Sources   Download

MIT

The Requires

 

The Development Requires

12/04 2018

v1.0.0

1.0.0.0

PHP Client library for the Dotmailer REST (v2) API

  Sources   Download

MIT

The Requires

 

The Development Requires