wizjo/freshmail

v1.0.0 2016-07-11 08:33 UTC

This package is auto-updated.

Last update: 2024-04-09 18:41:26 UTC


README

A PHP library that easies usage of FreshMail REST API

Installation

The easiest way to get install the library is by using composer:

composer require wizjo/freshmail

Basic usage

$fm = new \Wizjo\FreshMail(API_KEY, API_SECRET);

//get request
$action = $fm->request('/ping');
$data = $action->getData();
echo $data['data']; //will print "pong"

//post request
$action = $fm->request('/ping', ['test' => 'data']);
$data = $action->getData();
echo $data['data']['test']; //will print "data"