2017 © Pedro Peláez
 

library api

Minutemailer API PHP wrapper

image

minutemailer/api

Minutemailer API PHP wrapper

  • Sunday, March 25, 2018
  • by minutemailer
  • Repository
  • 4 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Minutemailer API PHP Library

This library allows you to quickly get started with the Minutemailer API via PHP. Libraries for other languages will come soon., (*1)

Before you get started, read the API documentation., (*2)

Installation

$ composer require minutemailer/api or download the php-file Minutemailer.php if you are not using composer., (*3)

Usage

First you need to create an API token. You can do so by logging in to your Minutemailer account and go to the API settings page., (*4)

Make sure the file is loaded, either by require 'vendor/autoload.php' if you are using composer or require 'path/Minutemailer.php' if you are not., (*5)

<?php

require 'vendor/autoload.php';

$personalAccessToken = 'myAccessToken';

$client = new Minutemailer\Minutemailer($personalAccessToken);

// Create new contact and add it to list
$response = $client->contacts()->create('validemail@domain.com', ['first_name' => 'Firstname', 'last_name' => 'Lastname'], ['123abc']);

$contact_id = $response->id;

// Add existing contact to list
$response = $client->contact_lists('123abc')->addContact($contact_id);

// Resubscribe unsubscribed contact
$response = $client->contacts($contact_id)->update(['status' => 1]);

Email is required and name is optional. $response will be filled with the contact data if the request is valid. Otherwise, an error will be returned., (*6)

The Versions

25/03 2018

dev-master

9999999-dev

Minutemailer API PHP wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tobias Bleckert
by Carlos Arias

api email marketing php minutemailer

10/09 2015

v0.1.0

0.1.0.0

Minutemailer API PHP wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tobias Bleckert
by Carlos Arias

api email marketing php minutemailer