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

$recorder

$recorder

$error

$error

$kesArr

$kesArr

$APIMap

$APIMap

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() : mixed

Returns

mixed —

qq_callback()

qq_callback() : mixed

Returns

mixed —

get_openid()

get_openid() : mixed

Returns

mixed —

__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(mixed  $arr, mixed  $argsList, mixed  $baseUrl, mixed  $method) : mixed

Parameters

mixed $arr
mixed $argsList
mixed $baseUrl
mixed $method

Returns

mixed —

objToArr()

objToArr(mixed  $obj) : mixed

Parameters

mixed $obj

Returns

mixed —

simple_json_parser()

simple_json_parser(mixed  $json) : mixed

Parameters

mixed $json

Returns

mixed —