2017 © Pedro Peláez
 

package refreshmailer

Implementation of FreshMail.pl REST API

image

coloursfactory/refreshmailer

Implementation of FreshMail.pl REST API

  • Wednesday, June 21, 2017
  • by preclowski
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1,091 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

ReFreshMailer - ReFreshed REST API client for freshmail.pl

With this package usage of freshmailer.pl REST API will be more comfortable., (*1)

It uses adapters to provide right PSR-7 compatible HTTP service., (*2)

Actully implemented ones are:, (*3)

  • cURL
  • Guzzle6

Feel free to commit new adapters :), (*4)

See https://freshmail.pl/api_section/jak-zaczac/ for massive documentation., (*5)

http://freshmail.pl, (*6)

Installation

Simply add to your composer.json file, (*7)

{
    "require": {
        "preclowski/refreshmailer": "dev-master"
    }
}

or, require directly using, (*8)

composer require preclowski/refreshmailer

Usage

use ColoursFactory\ReFreshMailer\FreshMailClient;
use ColoursFactory\ReFreshMailer\Http\GuzzleHttpAdapter;
use GuzzleHttp\Client;

$options = [
    'apiKey' => 'abcdef1234567890',
    'apiSecret' => 'abcdef1234567890',
];

$httpAdapter = new GuzzleHttpAdapter(new Client());
// or
$httpAdapter = new CurlHttpAdapter();

/** @var HttpAdapterInterface $httpAdapter */
$client = new FreshMailClient($httpAdapter, 'https://api.freshmail.com/rest/', $options);

$campaigns = $client->doRequest('/campaigns');

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*9)

The Versions

21/06 2017

dev-master

9999999-dev

Implementation of FreshMail.pl REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

curl guzzle httplug php-http freshmail

09/06 2017

dev-develop

dev-develop

Implementation of FreshMail.pl REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

api curl rest guzzle freshmail