jongotlin / bjorn-lunden
0.1.5
2022-05-11 05:21 UTC
Requires
- php: ^7.2
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- php-http/guzzle6-adapter: ^1.0
- phpunit/phpunit: ^8.0
README
BjornLunden
Björn Lundén 的 API 包装器
使用 composer 安装
composer require jongotlin/bjorn-lunden
示例
$bjornLunden = new \JGI\BjornLunden\BjornLunden(new \GuzzleHttp\Client(['http_errors' => false])); $credentials = new \JGI\BjornLunden\Credentials($userKey, $clientId, $clientSecret); $token = $bjornLunden->tokens($credentials)->create(); $credentials->setToken($token->getAccessToken()); $users = $bjornLunden->users($credentials)->all(); var_dump($users);