Documentation ¶
Overview ¶
微信开放平台 移动应用、网站应用 微信登录功能 SDK.
Index ¶
Constants ¶
View Source
const ( LanguageZhCN = mpoauth2.LanguageZhCN LanguageZhTW = mpoauth2.LanguageZhTW LanguageEN = mpoauth2.LanguageEN )
View Source
const ( SexUnknown = mpoauth2.SexUnknown SexMale = mpoauth2.SexMale SexFemale = mpoauth2.SexFemale )
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
Auth 检验授权凭证 access_token 是否有效.
accessToken: 网页授权接口调用凭证 openId: 用户的唯一标识 httpClient: 如果不指定则默认为 util.DefaultHttpClient
func AuthCodeURL ¶
AuthCodeURL 生成网页授权地址.
appId: 公众号的唯一标识 redirectURI: 授权后重定向的回调链接地址 scope: 应用授权作用域 state: 重定向后会带上 state 参数, 开发者可以填写 a-zA-Z0-9 的参数值, 最多128字节
Types ¶
type Endpoint ¶
func NewEndpoint ¶
func (*Endpoint) ExchangeTokenURL ¶
func (*Endpoint) RefreshTokenURL ¶
Click to show internal directories.
Click to hide internal directories.