Versions in this module Expand all Collapse all v0 v0.0.2 Aug 14, 2019 v0.0.1 Aug 14, 2019 Changes in this version + var BaseURL = "https://qyapi.weixin.qq.com" + var Methods = map[string]HTTPAction + type API struct + AgentID int + CropID string + Secret string + Token string + func GetAPI() (a *API, err error) + func GetAPIFromFile(configFile string) (a *API, err error) + func NewAPI(cropID string, agentID int, secret string) *API + func (a *API) GetToken() (token string, err error) + func (a *API) Send(msg interface{}) (err error) + func (a *API) SendMarkdownToUser(content string, users ...string) (err error) + func (a *API) SendTextToUser(content string, users ...string) (err error) + type Config struct + Agent int + CropID string + Secret string + type HTTPAction struct + Method string + URL string + type ImageMsg struct + EnableIDTrans int + Image struct{ ... } + Safe int + type MarkdownMsg struct + Markdown struct{ ... } + func NewMarkdownMsg(content string) *MarkdownMsg + type MsgBase struct + AgentID int + MsgType string + ToParty string + ToTag string + ToUser string + type MsgResp struct + InvalidParty string + InvalidTag string + InvalidUser string + type RespBase struct + ErrCode int + ErrMsg string + func (r *RespBase) Error() error + type TextMsg struct + EnableIDTrans int + Safe int + Text struct{ ... } + func NewTextMsg(content string) *TextMsg + type TokenResp struct + AccessToken string + ExpireIn int