\lqfWxlogin

Summary

Methods
Properties
Constants
__construct()
get_authorize_url()
get_access_token()
get_user_info()
https_request()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$app_id
$app_secret
N/A

Properties

$app_id

$app_id : 

Type

$app_secret

$app_secret : 

Type

Methods

__construct()

__construct(  $app_id = '',   $app_secret = '') 

Parameters

$app_id
$app_secret

get_authorize_url()

get_authorize_url(string  $redirect_uri = '', mixed  $state = '') 

获取微信授权链接

Parameters

string $redirect_uri

跳转地址

mixed $state

参数

get_access_token()

get_access_token(string  $code = '') 

获取授权token

Parameters

string $code

通过get_authorize_url获取到的code

get_user_info()

get_user_info(string  $access_token = '', string  $open_id = '') 

获取授权后的微信用户信息

Parameters

string $access_token
string $open_id

https_request()

https_request(  $url,   $data = null) 

Parameters

$url
$data