2017 © Pedro Peláez
 

library php-sdk

mailXpert SDK for PHP

image

mailxpert/php-sdk

mailXpert SDK for PHP

  • Monday, March 19, 2018
  • by scube
  • Repository
  • 1 Watchers
  • 2 Stars
  • 304 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 11 % Grown

The README.md

mailXpert PHP SDK for API V2.0

This library allows you to easily manipulate the mailXpert API V2.0., (*1)

NOTE: This library is still considered as in alpha release. Although it is meant to be light and there is no plan for big changes in it, be careful if planned to use in production environment., (*2)

Scrutinizer Code Quality, (*3)

Installation

Install this package with composer:, (*4)

composer require mailxpert/php-sdk

Usage

You can check the examples/ folders., (*5)

Initialisation

The basic usage is the following:, (*6)

$mailxpert = new Mailxpert([
    'app_id' => $appId,
    'app_secret' => $appSecret 
]);

Show the "Login with mailXpert" button

<a href="<?php echo $mailxpert->getLoginHelper()->getLoginUrl($redirectUrl); ?>">Login with mailXpert</a>

Retrieve the access token from the code

if (isset($_REQUEST['code'])) {
    $accessToken = $mailxpert->getLoginHelper()->getAccessToken($redirectUrl);
}

Do a query with the access token

$data = json_decode($mailxpert->sendRequest('GET','/contact_lists',[], $accessToken), true);
$contactLists = $data['data'];

Note: You can also set the access token for all your requests:, (*7)

$mailxpert->setAccessToken($access_token);

and then you can do any call like this:, (*8)

$mailxpert->sendRequest('GET','/contact_lists');

Support

Made by ARTACK WebLab GmbH. Feel free to contribute or submit issues., (*9)

-- Inspired from Facebook PHP SDK 4.0 https://github.com/facebook/facebook-php-sdk-v4 --, (*10)

The Versions

19/03 2018

dev-master

9999999-dev https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

php sdk mailxpert

19/03 2018

0.1.0

0.1.0.0 https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

php sdk mailxpert

19/03 2018

0.0.10

0.0.10.0 https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

php sdk mailxpert

20/12 2017

dev-feature/cp

dev-feature/cp https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

php sdk mailxpert

04/12 2017

0.0.9

0.0.9.0 https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

php sdk mailxpert

19/07 2017

dev-develop

dev-develop https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

php sdk mailxpert

19/07 2017

0.0.8

0.0.8.0 https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

php sdk mailxpert

25/08 2015

0.0.7

0.0.7.0 https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

php sdk mailxpert

21/08 2015

0.0.5

0.0.5.0 https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php sdk mailxpert

18/08 2015

0.0.4

0.0.4.0 https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php sdk mailxpert

18/08 2015

0.0.3

0.0.3.0 https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php sdk mailxpert

17/08 2015

0.0.1-alpha1

0.0.1.0-alpha1 https://github.com/mailXpert/mailxpert-php-sdk

mailXpert SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php sdk mailxpert