xdrew / oauth2-odnoklassniki
league/oauth2-client 的 Odnoklassniki 提供商
0.2.2
2016-10-15 19:21 UTC
Requires
- php: >=5.5
- league/oauth2-client: ^1.4
This package is not auto-updated.
Last update: 2024-09-28 20:19:54 UTC
README
此包为 League 的 OAuth2 Client 提供了 Odnoklassniki 集成,具体请访问 Odnoklassniki 和 OAuth2 Client。
安装
composer require xdrew/oauth2-odnoklassniki
配置
$provider = new xdrew\OAuth2\Client\Provider\Odnoklassniki([ 'clientId' => '1234567', 'clientPublic' => 'CBAPKGGLEBACACACA', 'clientSecret' => 's0meRe4lLySEcRetC0De', 'redirectUri' => 'https://example.org/oauth-endpoint', 'scopes' => ['GET_EMAIL'], // OPTIONAL You should request access to this scope from ok.ru support to get user email 'userFields' => [''], // OPTIONAL ]);