WeChat.CustomService (wechat v0.2.0)
客服帐号管理
Link to this section Summary
Link to this section Types
Link to this type
kf_account()
Specs
kf_account() :: String.t()
完整客服账号,格式为:账号前缀@公众号微信号
Link to this type
nickname()
Specs
nickname() :: String.t()
客服昵称
Link to this type
password()
Specs
password() :: String.t()
客服账号登录密码
格式为密码明文的32位加密MD5值。该密码仅用于在公众平台官网的多客服功能中使用,若不使用多客服功能,则不必设置密码。
Link to this section Functions
Link to this function
add_kf_account(client, kf_account, nickname, password)
Specs
add_kf_account(WeChat.client(), kf_account(), nickname(), password()) :: WeChat.response()
添加客服帐号 - 官方文档
每个公众号最多添加100个客服账号。
Link to this function
del_kf_account(client, kf_account, nickname, password)
Specs
del_kf_account(WeChat.client(), kf_account(), nickname(), password()) :: WeChat.response()
删除客服帐号 - 官方文档
Link to this function
get_kf_list(client)
Specs
get_kf_list(WeChat.client()) :: WeChat.response()
获取所有客服账号 - 官方文档
获取公众号中所设置的客服基本信息,包括客服工号、客服昵称、客服登录账号。
Link to this function
update_kf_account(client, kf_account, nickname, password)
Specs
update_kf_account(WeChat.client(), kf_account(), nickname(), password()) :: WeChat.response()
修改客服帐号 - 官方文档
Link to this function
upload_head_img(client, kf_account, path)
Specs
upload_head_img(WeChat.client(), kf_account(), path :: Path.t()) :: WeChat.response()
设置客服帐号的头像 - 官方文档
头像图片文件必须是jpg格式,推荐使用640*640大小的图片以达到最佳效果。
Link to this function
upload_head_img(client, kf_account, filename, data)
Specs
upload_head_img( WeChat.client(), kf_account(), filename :: String.t(), data :: binary() ) :: WeChat.response()
设置客服帐号的头像(binary) - 官方文档
头像图片文件必须是jpg格式,推荐使用640*640大小的图片以达到最佳效果。