Documentation ¶
Index ¶
- type Client
- func (comp *Client) Create(account string, nickname string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) Delete(account string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) HideTypingStatusToUser(openID string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) Invite(account string, wechatID string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) List() (*response.ResponseList, error)
- func (comp *Client) Message(message contract.MessageInterface) *Messenger
- func (comp *Client) Messages(data *request.RequestMessages) (*response.ResponseMessages, error)
- func (comp *Client) Online() (*response.ResponseKFOnlineList, error)
- func (comp *Client) Send(message interface{}) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) SetAvatar(account string, path string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) ShowTypingStatusToUser(openID string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) Update(account string, nickname string) (*response2.ResponseOfficialAccount, error)
- type Messenger
- func (comp *Messenger) From(account string) *Messenger
- func (comp *Messenger) Send() (result interface{}, err error)
- func (comp *Messenger) SetBy(account string) *Messenger
- func (comp *Messenger) SetMessage(message *contract.MessageInterface) *Messenger
- func (comp *Messenger) SetTo(openID string) *Messenger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, *session.Client)
func (*Client) Create ¶
func (comp *Client) Create(account string, nickname string) (*response2.ResponseOfficialAccount, error)
添加客服帐号 https://developers.weixin.qq.com/doc/offiaccount/Customer_Service/Customer_Service_Management.html
func (*Client) Delete ¶
func (comp *Client) Delete(account string) (*response2.ResponseOfficialAccount, error)
删除客服帐号 https://developers.weixin.qq.com/doc/offiaccount/Customer_Service/Customer_Service_Management.html
func (*Client) HideTypingStatusToUser ¶
func (comp *Client) HideTypingStatusToUser(openID string) (*response2.ResponseOfficialAccount, error)
隐藏收入状态给用户 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html
func (*Client) Invite ¶
func (comp *Client) Invite(account string, wechatID string) (*response2.ResponseOfficialAccount, error)
邀请绑定客服帐号 https://developers.weixin.qq.com/doc/offiaccount/Customer_Service/Customer_Service_Management.html
func (*Client) List ¶
func (comp *Client) List() (*response.ResponseList, error)
获取客服基本信息 https://developers.weixin.qq.com/doc/offiaccount/Customer_Service/Customer_Service_Management.html
func (*Client) Messages ¶
func (comp *Client) Messages(data *request.RequestMessages) (*response.ResponseMessages, error)
获取聊天记录 https://developers.weixin.qq.com/doc/offiaccount/Customer_Service/Obtain_chat_transcript.html
func (*Client) Online ¶
func (comp *Client) Online() (*response.ResponseKFOnlineList, error)
获取在线客服基本信息 https://developers.weixin.qq.com/doc/offiaccount/Customer_Service/Customer_Service_Management.html
func (*Client) Send ¶
func (comp *Client) Send(message interface{}) (*response2.ResponseOfficialAccount, error)
客服接口 - 发消息 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html
func (*Client) SetAvatar ¶
func (comp *Client) SetAvatar(account string, path string) (*response2.ResponseOfficialAccount, error)
上传客服头像 https://developers.weixin.qq.com/doc/offiaccount/Customer_Service/Customer_Service_Management.html
func (*Client) ShowTypingStatusToUser ¶
func (comp *Client) ShowTypingStatusToUser(openID string) (*response2.ResponseOfficialAccount, error)
显示收入状态给用户 https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html
func (*Client) Update ¶
func (comp *Client) Update(account string, nickname string) (*response2.ResponseOfficialAccount, error)
邀请绑定客服帐号 https://developers.weixin.qq.com/doc/offiaccount/Customer_Service/Customer_Service_Management.html
type Messenger ¶
type Messenger struct { Message *contract.MessageInterface To string Account string Client *Client }
func NewMessenger ¶
func (*Messenger) SetMessage ¶
func (comp *Messenger) SetMessage(message *contract.MessageInterface) *Messenger