更新客服账号 详情请参考 http://mp.weixin.qq.com/wiki/1/70a29afed17f56d537c833f89be979c9.html :param account: 完整客服账号,格式为:账号前缀@公众号微信号 :param nickname: 客服昵称,最长6个汉字或12个英文字符 :param password: 客服账号登录密码 :return: 返回的 JSON 数据包
(self, account, nickname, password)
| 35 | ) |
| 36 | |
| 37 | def update_account(self, account, nickname, password): |
| 38 | """ |
| 39 | 更新客服账号 |
| 40 | 详情请参考 |
| 41 | http://mp.weixin.qq.com/wiki/1/70a29afed17f56d537c833f89be979c9.html |
| 42 | |
| 43 | :param account: 完整客服账号,格式为:账号前缀@公众号微信号 |
| 44 | :param nickname: 客服昵称,最长6个汉字或12个英文字符 |
| 45 | :param password: 客服账号登录密码 |
| 46 | :return: 返回的 JSON 数据包 |
| 47 | """ |
| 48 | password = to_binary(password) |
| 49 | password = hashlib.md5(password).hexdigest() |
| 50 | return self._post( |
| 51 | 'https://api.weixin.qq.com/customservice/kfaccount/update', |
| 52 | data={ |
| 53 | 'kf_account': account, |
| 54 | 'nickname': nickname, |
| 55 | 'password': password |
| 56 | } |
| 57 | ) |
| 58 | |
| 59 | def delete_account(self, account): |
| 60 | """ |