Constants

VERSION

VERSION = "2.0"

GET_AUTH_CODE_URL

GET_AUTH_CODE_URL = "https://graph.qq.com/oauth2.0/authorize"

GET_ACCESS_TOKEN_URL

GET_ACCESS_TOKEN_URL = "https://graph.qq.com/oauth2.0/token"

GET_OPENID_URL

GET_OPENID_URL = "https://graph.qq.com/oauth2.0/me"

Properties

$urlUtils

$urlUtils : 

Type

$recorder

$recorder : 

Type

$error

$error : 

Type

$kesArr

$kesArr : 

Type

$APIMap

$APIMap : 

Type

Methods

__construct()

__construct(string  $access_token = "", string  $openid = "") : Object

_construct

构造方法

Parameters

string $access_token

access_token value

string $openid

openid value

Returns

Object —

QC

qq_login()

qq_login(  $appid,   $callback) 

Parameters

$appid
$callback

qq_callback()

qq_callback(  $appid,   $appkey,   $callback,   $code) 

Parameters

$appid
$appkey
$callback
$code

get_openid()

get_openid(  $access_token) 

Parameters

$access_token

init()

init(  $appid,   $access_token,   $openid) 

Parameters

$appid
$access_token
$openid

__call()

__call(string  $name, array  $arg) : array

_call 魔术方法,做api调用转发

Parameters

string $name

调用的方法名称

array $arg

参数列表数组

Returns

array —

返加调用结果数组

get_access_token()

get_access_token() : string

get_access_token 获得access_token

Returns

string —

返加access_token

_applyAPI()

_applyAPI(  $arr,   $argsList,   $baseUrl,   $method) 

Parameters

$arr
$argsList
$baseUrl
$method

objToArr()

objToArr(  $obj) 

Parameters

$obj

simple_json_parser()

simple_json_parser(  $json) 

Parameters

$json