Skip to content

moneymaxim/TrustpilotAuthenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trustpilot Authenticator

Latest Stable Version Total Downloads License

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

This library has been developed and open sourced by moneymaxim.

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

Install

Install using composer:

composer install moneymaxim/trustpilot-authenticator

Usage

$authenticator = new Trustpilot\Api\Authenticator\Authenticator();

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

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

About

A PHP library for obtaining Trustpilot API access tokens.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages