Documentation ¶
Index ¶
- func GetAPIDomainIP(dest *APIDomainIP) wx.Action
- func GetUserInfo(dest *UserInfo, code string) wx.Action
- func UserAuthSucc(userID string) wx.Action
- type APIDomainIP
- type AccessToken
- type Corp
- func (corp *Corp) AccessToken(ctx context.Context, secret string, options ...yiigo.HTTPOption) (*AccessToken, error)
- func (corp *Corp) CorpID() string
- func (corp *Corp) Do(ctx context.Context, accessToken string, action wx.Action, ...) error
- func (corp *Corp) SetServerConfig(token, encodingAESKey string)
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAPIDomainIP ¶
func GetAPIDomainIP(dest *APIDomainIP) wx.Action
Types ¶
type APIDomainIP ¶
type APIDomainIP struct {
IPList []string `json:"ip_list"`
}
type AccessToken ¶
AccessToken 企业微信AccessToken
type Corp ¶
type Corp struct {
// contains filtered or unexported fields
}
func (*Corp) AccessToken ¶
func (corp *Corp) AccessToken(ctx context.Context, secret string, options ...yiigo.HTTPOption) (*AccessToken, error)
func (*Corp) Do ¶
func (corp *Corp) Do(ctx context.Context, accessToken string, action wx.Action, options ...yiigo.HTTPOption) error
Do exec action
func (*Corp) SetServerConfig ¶
SetServerConfig 设置服务器配置 [参考](https://open.work.weixin.qq.com/api/doc/90000/90135/90930)
Click to show internal directories.
Click to hide internal directories.