Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthorizeUrl ¶
构造网页授权链接
如果用户同意授权,页面将跳转至 redirect_uri/?code=CODE&state=STATE
Types ¶
type UserInfo ¶
type UserInfo struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` UserID string `json:"UserId"` DeviceID string `json:"DeviceId"` }
func GetUserInfo ¶
获取访问用户身份
该接口用于根据code获取成员信息
See: https://work.weixin.qq.com/api/doc/90000/90135/91023
GET https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code=CODE
Click to show internal directories.
Click to hide internal directories.