2017 © Pedro Peláez
 

package mailsoft-php

A PHP-SDK for the Mailsoft API

image

mailsoft/mailsoft-php

A PHP-SDK for the Mailsoft API

  • Friday, July 6, 2018
  • by t202wes
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Mailsoft PHP SDK

You can sign up for a Mailsoft account at https://mailsoft.io., (*1)

Requirements

PHP 5.4.0 and later., (*2)

Composer

You can install this package via Composer. Run the following command:, (*3)

composer require mailsoft/mailsoft-php

To use the bindings, use Composer's autoload:, (*4)

require_once('vendor/autoload.php');

Manual Installation

If you do not wish to use Composer, you can download the latest release., (*5)

Dependencies

The bindings require the following extensions in order to work properly:, (*6)

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available., (*7)

Getting Started

Simple usage looks like:, (*8)

<?php

use Mailsoft\MailsoftClient;

include "vendor/autoload.php";

$secret_key = 'YOUR_MAILSOFT_ACCOUNT_SECRET_KEY';

$MailsoftClient = new MailsoftClient();
$MailsoftClient->setSecretKey($secret_key);


//List all people
$response = $MailsoftClient->request('GET', '/people');
print_r($response);

//Create a person
$response = $MailsoftClient->request('POST', '/people', ['email' => 'old@mailsoft.io']);

//Update a person (unsubscribes a person)
$response = $MailsoftClient->request('PUT', '/people/1', ['subscribed' => false]);

//Retrieve a person
$response = $MailsoftClient->request('GET', '/people/1');

Documentation

Please see https://docs.mailsoft.io for up-to-date documentation., (*9)

The Versions

06/07 2018

dev-master

9999999-dev

A PHP-SDK for the Mailsoft API

  Sources   Download

MIT

The Requires

 

by Wes Mahler

mailsoft