2017 © Pedro Peláez
 

library trustpilot-invitation-api

A PHP library for accessing the Trustpilot Invitation API

image

moneymaxim/trustpilot-invitation-api

A PHP library for accessing the Trustpilot Invitation API

  • Thursday, January 28, 2016
  • by AndrewCarterUK
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10,395 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

Trustpilot Invitation API Client

Latest Stable Version Total Downloads License, (*1)

A PHP library for accessing the Trustpilot Invitation API., (*2)

This library has been developed and open sourced by moneymaxim., (*3)

We are currently on the look out for PHP programming talent, so please get in touch if you are interested., (*4)

Install

Install using composer:, (*5)

composer install moneymaxim/trustpilot-invitation-api

Usage

use Trustpilot\Api\Authenticator\Authenticator;
use Trustpilot\Api\Invitation\Client;
use Trustpilot\Api\Invitation\Recipient;
use Trustpilot\Api\Invitation\Sender;
use Trustpilot\Api\Invitation\Context;

$authenticator = new Authenticator();
$accessToken = $authenticator->getAccessToken($apiKey, $apiToken, $username, $password);

$client = new Client($accessToken);

$context = new Context($businessUnitId, $templateId, $redirectUri);
// The last two arguments to the Context constructor ($tags and $locale) are optional
// $context = new Context($templateId, $redirectUri, $tags = array(), $locale = 'en-US');

$recipient = new Recipient($recipientEmail, $recipientName);
$sender    = new Sender($senderEmail, $senderName, $replyTo);

$client->invite($context, $recipient, $sender, $reference) /* : array */

The Versions

28/01 2016

dev-master

9999999-dev

A PHP library for accessing the Trustpilot Invitation API

  Sources   Download

MIT

The Requires

 

28/01 2016

v0.1.1

0.1.1.0

A PHP library for accessing the Trustpilot Invitation API

  Sources   Download

MIT

The Requires

 

28/01 2016

v0.1.0

0.1.0.0

A PHP library for accessing the Trustpilot Invitation API

  Sources   Download

MIT

The Requires