Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessData ¶
type AccessData struct { AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` RefreshToken string `json:"refresh_token"` }
AccessData access token response
type Client ¶
Client QQ oauth client
func (*Client) GetAccessTokenByCode ¶
GetAccessTokenByCode 根据code获取accessToken 主要用到PC网站上
第二步 之前还有获取code的方法 https://wiki.connect.qq.com/%E4%BD%BF%E7%94%A8authorization_code%E8%8E%B7%E5%8F%96access_token
type OpenIdData ¶
type OpenIdData struct { ClientId string `json:"client_id"` OpenId string `json:"openid"` UnionId string `json:"unionid"` }
OpenIdData openId response
Click to show internal directories.
Click to hide internal directories.