Class SaeTOAuthV2
新浪微博 OAuth 认证类(OAuth2)
授权机制说明请大家参考微博开放平台文档:http://open.weibo.com/wiki/Oauth2
public
|
#
__construct( $client_id, $client_secret, $access_token = NULL, $refresh_token = NULL )
construct WeiboOAuth object |
public
array
|
#
getAuthorizeURL( string $url, string $response_type = 'code', string $state = NULL, string $display = NULL )
authorize接口 |
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
#
getTokenFromArray( array $arr )
从数组中读取access_token和refresh_token 常用于从Session或Cookie中读取token,或通过Session/Cookie中是否存有token判断登录状态。 |
public
mixed
|
|
public
mixed
|
|
public
mixed
|