Documentation ¶
Index ¶
- Constants
- func CreateKeFu(accessToken, account, nickname, password string) error
- func DeleteKeFu(accessToken, account, nickname, password string) error
- func SetKeFuAvatarByPath(accessToken, account, imgPath string) error
- func SetKeFuAvatarByUrl(accessToken, account, imgUrl string) error
- func SetKeFuTypeStatus(accesstoken, userOpenID string, status TypeStatus) error
- func UpdateKeFu(accessToken, account, nickname, password string) error
- type KeFuInfo
- type KeFuList
- type KeFuTypeStatus
- type TypeStatus
Constants ¶
View Source
const ( CreateKfApi = "https://api.weixin.qq.com/customservice/kfaccount/add?access_token=%s" ModifyKfApi = "https://api.weixin.qq.com/customservice/kfaccount/update?access_token=%s" DeleteKfApi = "https://api.weixin.qq.com/customservice/kfaccount/del?access_token=%s" //开发者可调用本接口来上传图片作为客服人员的头像,头像图片文件必须是jpg格式,推荐使用640*640大小的图片以达到最佳效果 SetKfAvatarApi = "http://api.weixin.qq.com/customservice/kfaccount/uploadheadimg?access_token=%s&kf_account=%s" GetKfListApi = "https://api.weixin.qq.com/cgi-bin/customservice/getkflist?access_token=%s" )
View Source
const (
KeFuTypingApi = "https://api.weixin.qq.com/cgi-bin/message/custom/typing?access_token=%s"
)
Variables ¶
This section is empty.
Functions ¶
func CreateKeFu ¶
func DeleteKeFu ¶
func SetKeFuAvatarByPath ¶
func SetKeFuAvatarByUrl ¶
func SetKeFuTypeStatus ¶
func SetKeFuTypeStatus(accesstoken, userOpenID string, status TypeStatus) error
func UpdateKeFu ¶
Types ¶
type KeFuInfo ¶
type KeFuInfo struct { KfAccount string `json:"kf_account"` NickName string `json:"nickname"` Password string `json:"password"` KfID int `json:"kf_id,omitempty"` }
客服人员信息
type KeFuTypeStatus ¶
type KeFuTypeStatus struct { ToUser string `json:"touser,omitempty"` Command TypeStatus `json:"command,omitempty"` }
type TypeStatus ¶
type TypeStatus string
const ( TYPE_STATUS_TYPING TypeStatus = "Typing" TYPE_STATUS_TYPING_CANCLE = "CancelTyping" )
Click to show internal directories.
Click to hide internal directories.