moneymaxim / trustpilot-authenticator
A PHP library for obtaining Trustpilot API access tokens
Installs: 50 672
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 7
Open Issues: 1
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ~6.0
This package is not auto-updated.
Last update: 2024-11-02 01:55:53 UTC
README
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