Versions in this module Expand all Collapse all v0 v0.0.5 Feb 18, 2021 Changes in this version + const AccessTokenURL + const AddNewsURL + const CommentURL + const CreateMenuURL + const DeleteSendALLURL + const GetkfListURL + const KFaccountURL + const MassSpeedURL + const MaterialURL + const MediaURL + const Menu + const MpVideoType + const PreviewURL + const SendAllStatusURL + const SendAllURL + const SendMsgURL + const SetKfAccountheadimgURL + const TagsURL + const TemplateURL + const TypingURL + const UploadURL + func GetRandStr(a int) string + type AccessToken struct + Access_token string + Expires_in int64 + type Article struct + Description string + PicUrl string + Title string + Url string + type BassMessage struct + MsgType string + Touser string + type Comment struct + CommentType int + Content string + CreateTime int + OpenID string + Reply struct{ ... } + UserCommentID int + type Customservice struct + KFaccount string + type Fans struct + Count int + Data struct{ ... } + NextOpenId string + Total int + type Handler func() (AccessToken, error) + type Image struct + MediaId string + type ImageMessage struct + Customservice Customservice + Image Image + type Jsapi_ticket struct + ErrCode int + ErrMsg string + Expires_in int64 + Ticket string + type KF struct + KfAccount string + KfHeadImgUrl string + KfId string + KfNick string + type KfAccountList struct + Kflist []KF + type Miniprogrampage struct + AppId string + PagePath string + ThumbMediaId string + Title string + type MiniprogrampageMessage struct + Customservice Customservice + Miniprogrampage Miniprogrampage + type MpNews struct + MediaId string + type MpNewsMessage struct + Customservice Customservice + MpNews MpNews + type MpVideo struct + MediaId string + type Music struct + Description string + HqmusicUrl string + MusicUrl string + ThumbMediaId string + Title string + type MusicMessage struct + Customservice Customservice + Music Music + type News struct + Articles []Article + type NewsArticle struct + Author string + Content string + ContentSourceUrl string + Digest string + NeedOpenComment int + OnlyFansCanComment int + ShowCoverPic int + ThumbMediaId string + Title string + type NewsList struct + Articles []NewsArticle + type NewsMessage struct + Customservice Customservice + News News + type PreviewImage struct + Image Image + MsgType string + ToUser string + type PreviewMpNews struct + MpNews MpNews + MsgType string + ToUser string + type PreviewMpVideo struct + MpVideo MpVideo + MsgType string + ToUser string + type PreviewText struct + MsgType string + Text Text + ToUser string + type PreviewVoice struct + MsgType string + ToUser string + Voice Voice + type Res struct + ErrCode int + ErrMsg string + type SendAllResp struct + ErrCode int + ErrMsg string + MsgDataId int + MsgId int + type Tag struct + Count int + Id int + Name string + type Text struct + Content string + type TextMessage struct + Customservice Customservice + Text Text + type Trader struct + AccessTokenHandler Handler + Accesstoken string + AppId string + AppSecret string + ExpiresIn int64 + JsapiTicket string + JsapiTicketExpiresIn int64 + func NewTrader(appid, appsecret string, h Handler) (t *Trader, err error) + func (t *Trader) AddConditionalMenu(menujson string) (menuid string, err error) + func (t *Trader) AddImageMaterial(data []byte) (mediaId, url string, err error) + func (t *Trader) AddKfAccount(kfaccount, nickname, password string) error + func (t *Trader) AddNews(nl NewsList) (mediaId string, err error) + func (t *Trader) AddThumbMaterial(data []byte) (mediaId, url string, err error) + func (t *Trader) AddVideoMaterial(data []byte, title, introduction string) (mediaId string, err error) + func (t *Trader) AddVoiceMaterial(data []byte) (mediaId string, err error) + func (t *Trader) BatchCancelTag(useropenid []string, tagid int) (err error) + func (t *Trader) BatchGetMaterial(materialtype string, offset int, count int) (data string, err error) + func (t *Trader) BatchTagToUsers(useropenids []string, tagid int) (err error) + func (t *Trader) CheckAccessTokenLive() (err error) + func (t *Trader) CreateMenu(contentjson string) (err error) + func (t *Trader) CreateTag(tagname string) (tagid int, err error) + func (t *Trader) DelKfAccount(kfaccount, nickname, password string) error + func (t *Trader) DelMaterial(mediaid string) (err error) + func (t *Trader) DelMenu() (err error) + func (t *Trader) DelTag(tagid int) (err error) + func (t *Trader) DelTemplate(templateId string) (err error) + func (t *Trader) DelconditionalMenu(menuid string) (err error) + func (t *Trader) DeleteComment(msgdataid, index, usercommentid int) (err error) + func (t *Trader) DeleteMass(msgid, index int) (err error) + func (t *Trader) DeleteReplyComment(msgdataid, index, usercommentid int) (err error) + func (t *Trader) FlushAccessToken() (err error) + func (t *Trader) Get(surl string) (b []byte, err error) + func (t *Trader) GetALLTemplate() (jsonstr string, err error) + func (t *Trader) GetAccessToken() (a AccessToken, err error) + func (t *Trader) GetCommentList(msgdataid, index, begin, count, commenttype int) (list []Comment, err error) + func (t *Trader) GetFans(nextopenid string) (fans Fans, err error) + func (t *Trader) GetIndustry() (jsonstr string, err error) + func (t *Trader) GetJsapiTicket() (ticket string, err error) + func (t *Trader) GetKfList() (list KfAccountList, err error) + func (t *Trader) GetMassSpeed() (speedgrade, realspeed int, err error) + func (t *Trader) GetMaterialCount() (newscount, imagecount, videocount, voicecount int, err error) + func (t *Trader) GetMaterialInfo(mediaid string) (data []byte, err error) + func (t *Trader) GetMenu() (menujson string, err error) + func (t *Trader) GetSendAllStatus(msgid int) (status string, err error) + func (t *Trader) GetTag() (tags []Tag, err error) + func (t *Trader) GetTagsByUser(useropenid string) (tagids []int, err error) + func (t *Trader) GetTemplateId(templateIdShort string) (templateId string, err error) + func (t *Trader) GetUserByTag(tagid int, nextopenid string) (useropenid []string, lastopenid string, err error) + func (t *Trader) GetUserInfo(openid string) (user UserInfo, err error) + func (t *Trader) MarkelectComment(msgdataid, index, usercommentid int) (err error) + func (t *Trader) OpenComment(bl bool, msgdataid int, index int) (err error) + func (t *Trader) PostJson(surl, jsonstr string) (b []byte, err error) + func (t *Trader) Preview(msgtype string, useropenid, mediaId string) (err error) + func (t *Trader) ReplyComment(msgdataid, index, usercommentid int, content string) (err error) + func (t *Trader) SendImageAll(tagId int, mediaId string) (msgid int, err error) + func (t *Trader) SendImageMsg(touser, imgMediaId string) error + func (t *Trader) SendMPNews(touser, mediaId string) error + func (t *Trader) SendMiniProgrampageMsg(touser, title, appid, pagePath, thumbMediaId string) error + func (t *Trader) SendMpNewsAll(tagId int, mediaId string) (msgid, msgdataid int, err error) + func (t *Trader) SendMusicMsg(touser, title, description, musicurl, hqmusicurl, thumb_media_id string) error + func (t *Trader) SendNewsMsg(touser string, articles []Article) error + func (t *Trader) SendTemplateMsg(jsonContext string) (msgid int, err error) + func (t *Trader) SendTextAll(tagId int, text string) (msgid int, err error) + func (t *Trader) SendTextMsg(touser, text string) error + func (t *Trader) SendVideoAll(tagId int, mediaId, title, description string) (msgid int, err error) + func (t *Trader) SendVideoMsg(touser, videoMediaId, thumbMediaId, title, description string) error + func (t *Trader) SendVoiceAll(tagId int, mediaId string) (msgid int, err error) + func (t *Trader) SendVoiceMsg(touser, voiceMediaId string) error + func (t *Trader) SendWxCardAll(tagId int, cardId string) (msgid int, err error) + func (t *Trader) SendWxCardMsg(touser, cardId string) error + func (t *Trader) SetIndustry(industryId1, industryId2 int) (err error) + func (t *Trader) SetJsapiTicket(ticket string, Expires_in int64) + func (t *Trader) SetKfAccountheadImg(kfaccount string, imgdata []byte) (err error) + func (t *Trader) SetMassSpeed(speed int) (err error) + func (t *Trader) SetRemark(useropenid string, remark string) (err error) + func (t *Trader) Typing(touser string, b bool) (err error) + func (t *Trader) UnMarkelectComment(msgdataid, index, usercommentid int) (err error) + func (t *Trader) UpLoadImg(data []byte) (url string, err error) + func (t *Trader) UpdateKfAccount(kfaccount, nickname, password string) error + func (t *Trader) UpdateNews(mediaid string, index int, article NewsArticle) (err error) + func (t *Trader) UpdateTag(tagid int, tagname string) (err error) + func (t *Trader) UploadNews(articles []NewsArticle) (mediaId string, err error) + func (t *Trader) WebConfig(url string) (wf WebConf, err error) + type UserInfo struct + City string + Country string + Groupid int + HeadimgUrl string + Language string + NickName string + Openid string + Province string + Remark string + Sex int + Subscribe int + SubscribeTime int64 + TagidList []int + Unionid string + type Video struct + Description string + MediaId string + ThumbMediaId string + Title string + type VideoDesc struct + Introduction string + Title string + type VideoMessage struct + Customservice Customservice + Video Video + type Voice struct + MediaId string + type VoiceMessage struct + Customservice Customservice + Voice Voice + type WebConf struct + AppId string + Noncestr string + Signature string + Timestamp int64 + type WxCard struct + CardId string + type WxCardMessage struct + Customservice Customservice + WxCard WxCard