\qqapi

qqapi.class.php QQ接口Api,用于以QQ登录网站

Summary

Methods
Properties
Constants
__construct()
redirect_to_login()
get_openid()
get_user_info()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$appid
$appkey
$callback
$access_token
$openid
N/A

Properties

$appid

$appid : 

Type

$appkey

$appkey : 

Type

$callback

$callback : 

Type

$access_token

$access_token : 

Type

$openid

$openid : 

Type

Methods

__construct()

__construct(  $appid,   $appkey,   $callback) 

构造方法,用于初始化QQ所需参数

Parameters

$appid
$appkey
$callback

redirect_to_login()

redirect_to_login() 

给外部调用的方法,供QQ登录

get_openid()

get_openid(  $code) : string

获得登录的 openid

Parameters

$code

Returns

string

get_user_info()

get_user_info() : array

获取用户信息,返回一维数组

Returns

array