2017 © Pedro Peláez
 

project trustpilot-invitation-api

A PHP library for accessing the Trustpilot Invitation API and fetching recieved Product reviews

image

itspirit/trustpilot-invitation-api

A PHP library for accessing the Trustpilot Invitation API and fetching recieved Product reviews

  • Sunday, October 8, 2017
  • by ITspirit
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,194 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 17 % Grown

The README.md

Trustpilot Invitation API Client

Latest Stable Version Total Downloads License composer.lock available, (*1)

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

Install

Install using composer:, (*3)

composer install itspirit/trustpilot-invitation-api

Usage Invitation

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($apiKey, $apiToken, $username, $password);
$accessToken = $authenticator->getAccessToken();

$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 */

Usage fetch Product reviews

use Trustpilot\Api\Authenticator\Authenticator;
use Trustpilot\Api\Invitation\Client;

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

$client = new Client($accessToken);

$reviews = $client->getProductReviews(TRUSTPILOT_BUSINESS_UNIT_ID, null,
                ['published', 'unpublished', 'underModeration', 'archived'], 'de', $page, 100)

The Versions

08/10 2017

dev-master

9999999-dev

A PHP library for accessing the Trustpilot Invitation API and fetching recieved Product reviews

  Sources   Download

MIT

The Requires

 

The Development Requires

api review invitation trustpilot

08/10 2017

2.0.0

2.0.0.0

A PHP library for accessing the Trustpilot Invitation API and fetching recieved Product reviews

  Sources   Download

MIT

The Requires

 

The Development Requires

api review invitation trustpilot

13/07 2017

1.0.0

1.0.0.0

A PHP library for accessing the Trustpilot Invitation API

  Sources   Download

MIT

The Requires

 

The Development Requires

api review invitation trustpilot

03/07 2017

0.2.0

0.2.0.0

A PHP library for accessing the Trustpilot Invitation API

  Sources   Download

MIT

The Requires

 

api review invitation trustpilot

28/01 2016

0.1.1

0.1.1.0

A PHP library for accessing the Trustpilot Invitation API

  Sources   Download

MIT

The Requires

 

28/01 2016

0.1.0

0.1.0.0

A PHP library for accessing the Trustpilot Invitation API

  Sources   Download

MIT

The Requires