Documentation ¶
Index ¶
- type CgiBinGetTokenResponse
- type CgiBinGetTokenResult
- type CgiBinUserGetUserInfoResponse
- type CgiBinUserGetUserInfoResult
- type Client
- func (c *Client) CgiBinGetToken(notMustParams ...gorequest.Params) *CgiBinGetTokenResult
- func (c *Client) CgiBinUserGetUserInfo(code, accessToken string) *CgiBinUserGetUserInfoResult
- func (c *Client) ConnectOauth2Authorize() string
- func (c *Client) GetAgentId() int
- func (c *Client) GetAppId() string
- func (c *Client) GetKey() string
- func (c *Client) GetRedirectUri() string
- func (c *Client) GetSecret() string
- func (c *Client) WebhookSend(notMustParams ...gorequest.Params) *WebhookSendResult
- func (c *Client) WwOpenSsoQrConnect() string
- type ConfigClient
- type WebhookSendResponse
- type WebhookSendResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CgiBinGetTokenResponse ¶ added in v1.0.47
type CgiBinGetTokenResult ¶ added in v1.0.47
type CgiBinGetTokenResult struct { Result CgiBinGetTokenResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type CgiBinUserGetUserInfoResponse ¶ added in v1.0.47
type CgiBinUserGetUserInfoResponse struct { Errcode int `json:"errcode"` // 返回码 Errmsg string `json:"errmsg"` // 对返回码的文本描述内容 UserId string `json:"userId"` // 成员UserID。若需要获得用户详情信息 OpenId string `json:"OpenId"` // 非企业成员的标识,对当前企业唯一。不超过64字节 DeviceId string `json:"DeviceId"` // 手机设备号(由企业微信在安装时随机生成,删除重装会改变,升级不受影响) ExternalUserid string `json:"external_userid"` // 外部联系人id,当且仅当用户是企业的客户,且跟进人在应用的可见范围内时返回。如果是第三方应用调用,针对同一个客户,同一个服务商不同应用获取到的id相同 }
type CgiBinUserGetUserInfoResult ¶ added in v1.0.47
type CgiBinUserGetUserInfoResult struct { Result CgiBinUserGetUserInfoResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
type Client ¶ added in v1.0.47
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶ added in v1.0.47
func NewClient(config *ConfigClient) (*Client, error)
func (*Client) CgiBinGetToken ¶ added in v1.0.47
func (c *Client) CgiBinGetToken(notMustParams ...gorequest.Params) *CgiBinGetTokenResult
CgiBinGetToken 获取access_token https://open.work.weixin.qq.com/api/doc/90000/90135/91039
func (*Client) CgiBinUserGetUserInfo ¶ added in v1.0.47
func (c *Client) CgiBinUserGetUserInfo(code, accessToken string) *CgiBinUserGetUserInfoResult
CgiBinUserGetUserInfo 获取访问用户身份 https://open.work.weixin.qq.com/api/doc/90000/90135/91023
func (*Client) ConnectOauth2Authorize ¶ added in v1.0.47
ConnectOauth2Authorize 构造网页授权链接 https://work.weixin.qq.com/api/doc/90000/90135/91022
func (*Client) GetAgentId ¶ added in v1.0.47
func (*Client) GetRedirectUri ¶ added in v1.0.47
func (*Client) WebhookSend ¶ added in v1.0.47
func (c *Client) WebhookSend(notMustParams ...gorequest.Params) *WebhookSendResult
WebhookSend 发送应用消息 https://developer.work.weixin.qq.com/document/path/90372
func (*Client) WwOpenSsoQrConnect ¶ added in v1.0.47
WwOpenSsoQrConnect 构造独立窗口登录二维码 https://open.work.weixin.qq.com/api/doc/90000/90135/91019
type ConfigClient ¶ added in v1.0.47
type WebhookSendResponse ¶ added in v1.0.44
type WebhookSendResult ¶
type WebhookSendResult struct { Result WebhookSendResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 Err error // 错误 }
Click to show internal directories.
Click to hide internal directories.