Versions in this module Expand all Collapse all v1 v1.0.0 May 19, 2015 Changes in this version + const MsgTypeImage + const MsgTypeNews + const MsgTypeText + const MsgTypeVideo + const MsgTypeVoice + type Client struct + func NewClient(AccessTokenServer mp.AccessTokenServer, httpClient *http.Client) Client + func (clt Client) SendImage(msg *Image) (msgid int64, err error) + func (clt Client) SendNews(msg *News) (msgid int64, err error) + func (clt Client) SendText(msg *Text) (msgid int64, err error) + func (clt Client) SendVideo(msg *Video) (msgid int64, err error) + func (clt Client) SendVoice(msg *Voice) (msgid int64, err error) + type CommonMessageHeader struct + MsgType string + ToUser string + type Image struct + Image struct{ ... } + func NewImage(touser, mediaId string) *Image + type News struct + News struct{ ... } + func NewNews(touser, mediaId string) *News + type Text struct + Text struct{ ... } + func NewText(touser, content string) *Text + type Video struct + Video struct{ ... } + func NewVideo(touser, mediaId string) *Video + type Voice struct + Voice struct{ ... } + func NewVoice(touser, mediaId string) *Voice