$clientId
$clientId : string
The client_id of the app or access_key of the developer.
$clientId : string
The client_id of the app or access_key of the developer.
$clientSecret : string
The client_secret of the app or secret_key of the developer.
$redirectUri : string
Redirect uri of the app, where we will redirect to after user authorization.
$store : \BaiduStore
Storage for the user session related datas, like state, authorization code, access token and so on.
$state : string
$session : array
User session info.
$oauth2 : \BaiduOAuth2
__construct(string $clientId, string $clientSecret, string $redirectUri, \BaiduStore $store = null) : mixed
Constructor
string | $clientId | The client_id of the app or access_key of the developer. |
string | $clientSecret | The client_secret of the app or secret_key of the developer. |
string | $redirectUri | Redirect uri of the app. |
\BaiduStore | $store | Storage for the user session related datas. |
getLoginUrl(string $scope = '', string $display = 'page') : string
Get a Login URL for use with redirects. By default, full page redirect is assumed. If you are using the generated URL with a window.open() call in JavaScript, you can pass in display=popup as part of the $params.
string | $scope | blank space separated list of requested extended perms |
string | $display | Authorization page style, 'page', 'popup', 'touch' or 'mobile' |
the URL for the login flow