netgalley / oauth1-goodreads
Goodreads OAuth 1.0 客户端库
1.1.0
2022-11-07 18:53 UTC
Requires
- php: >=5.5.0
- league/oauth1-client: ^1.7
Requires (Dev)
- php: ^7.0
- phpunit/phpunit: ^6.3
This package is auto-updated.
Last update: 2024-09-07 23:14:29 UTC
README
此包为PHP League的OAuth 1.0 客户端提供Goodreads OAuth 1.0 支持。
安装
要安装,请使用Composer
composer require netgalley/oauth1-goodreads
用法
用法与The League的OAuth客户端相同,使用NetGalley\OAuth1\Client\Server\Goodreads
作为提供者。
$client = new \NetGalley\OAuth1\Client\Server\Goodreads(array( 'identifier' => 'your-client-id', 'secret' => 'your-client-secret', 'callback_uri' => 'http://callback.url/callback', ));
文档
参阅Goodreads API文档