moneymaxim / trustpilot-authenticator
一个用于获取Trustpilot API访问令牌的PHP库
v0.1.1
2016-01-27 14:58 UTC
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ~6.0
This package is not auto-updated.
Last update: 2024-09-21 01:18:40 UTC
README
一个用于获取Trustpilot 商业用户API访问令牌的PHP库。
此库由moneymaxim开发和开源。
我们目前正在寻找PHP编程人才,如果您感兴趣,请联系我们。
安装
使用composer安装
composer install moneymaxim/trustpilot-authenticator
用法
$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