Skip to content

A PHP library for obtaining Trustpilot API access tokens.

License

Notifications You must be signed in to change notification settings

bitbull-team/TrustpilotAuthenticator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trustpilot Authenticator

Latest Stable Version Total Downloads License

A PHP library for obtaining Trustpilot Business User API access tokens.

Install

Install using composer:

composer install itspirit/trustpilot-authenticator

Usage

$authenticator = new Trustpilot\Api\Authenticator\Authenticator($apiKey, $apiToken, $username, $password);

$accessToken = $authenticator->getAccessToken();

// $accessToken->getToken(): string
// $accessToken->hasExpired(): bool
// $accessToken->getExpiry(): \DateTimeImmutable
// $accessToken->serialize(): string

Tests

This package use Codeception for testing. To run the tests just type

vendor/bin/codecept run

About

A PHP library for obtaining Trustpilot API access tokens.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%