mechant / oauth1-500px
500px OAuth 1.0 客户端提供商,适用于 PHP League OAuth1-Client
dev-master
2016-03-22 17:42 UTC
Requires
- php: >=5.4.0
- league/oauth1-client: ~1.2
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-09-11 23:59:00 UTC
README
本软件包为 PHP League 的 OAuth 1.0 客户端 提供了一个 500px 客户端。
安装
composer require mechant/oauth1-500px
使用
使用方式与 The League 的 OAuth 客户端相同,使用 Mechant\OAuth1\Client\Server\FiveHundredPx
作为提供商。
$server = new Mechant\OAuth1\Client\Server\FiveHundredPx([ 'identifier' => 'your-client-id', 'secret' => 'your-client-secret', 'callback_uri' => 'http://callback.url/callback', ]);
请参考 500px API 文档 以获取可用的端点。