netgalley/oauth1-goodreads

Goodreads OAuth 1.0 客户端库

1.1.0 2022-11-07 18:53 UTC

This package is auto-updated.

Last update: 2024-09-07 23:14:29 UTC


README

License Latest Stable Version

此包为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文档