account

package
v0.0.0-...-5652a87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKfAccount

func AddKfAccount(clt *mp.Client, account, nickname, password string, isPwdPlain bool) (err error)

添加客服账号.

account:    完整客服账号, 格式为: 账号前缀@公众号微信号, 账号前缀最多10个字符, 必须是英文或者数字字符.
nickname:   客服昵称, 最长6个汉字或12个英文字符
password:   客服账号登录密码
isPwdPlain: 标识 password 是否为明文格式, true 表示是明文密码, false 表示是密文密码.

func DeleteKfAccount

func DeleteKfAccount(clt *mp.Client, kfAccount string) (err error)

删除客服账号

func SetKfAccount

func SetKfAccount(clt *mp.Client, account, nickname, password string, isPwdPlain bool) (err error)

设置客服信息(增量更新, 不更新的可以留空).

account:    完整客服账号, 格式为: 账号前缀@公众号微信号, 账号前缀最多10个字符, 必须是英文或者数字字符.
nickname:   客服昵称, 最长6个汉字或12个英文字符
password:   客服账号登录密码
isPwdPlain: 标识 password 是否为明文格式, true 表示是明文密码, false 表示是密文密码.

func UploadKfHeadImage

func UploadKfHeadImage(clt *mp.Client, kfAccount, imagePath string) (err error)

上传客服头像.

开发者可调用本接口来上传图片作为客服人员的头像, 头像图片文件必须是jpg格式, 推荐使用640*640大小的图片以达到最佳效果.

func UploadKfHeadImageFromReader

func UploadKfHeadImageFromReader(clt *mp.Client, kfAccount, filename string, reader io.Reader) (err error)

上传客服头像.

开发者可调用本接口来上传图片作为客服人员的头像, 头像图片文件必须是jpg格式, 推荐使用640*640大小的图片以达到最佳效果.
注意参数 filename 不是文件路径, 是指定 multipart/form-data 里面文件名称

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL