Esempio n. 1
0
 def del_account(self, kf_account):
     """
     删除客服号
     :param kf_account:
     """
     api = SimpleApi(api_url="%s&kf_account=%s" % (self.del_url, kf_account))
     return api.get_data()
Esempio n. 2
0
 def del_account(self, kf_account):
     """
     删除客服号
     :param kf_account:
     """
     api = SimpleApi(api_url="%s&kf_account=%s" %
                     (self.del_url, kf_account))
     return api.get_data()
Esempio n. 3
0
    def update_account(self, kf_account, kf_id=None, nickname=None, kf_nick=None, password=None):
        """
        更新客服帐号
        :param kf_account: 客服帐号 帐号前缀@公众号微信号
        :param kf_nick: 客服昵称
        :param kf_id: 客服工号
        :param nickname: 客服昵称
        :param password: 32位MD5
        """
        data = locals()
        if data["password"] is not None:
            data["password"] = hashlib.md5(password).hexdigest()

        api = SimpleApi(api_url=self.update_url, post_data=data)
        return api.get_data()
Esempio n. 4
0
    def update_account(self,
                       kf_account,
                       kf_id=None,
                       nickname=None,
                       kf_nick=None,
                       password=None):
        """
        更新客服帐号
        :param kf_account: 客服帐号 帐号前缀@公众号微信号
        :param kf_nick: 客服昵称
        :param kf_id: 客服工号
        :param nickname: 客服昵称
        :param password: 32位MD5
        """
        data = locals()
        if data["password"] is not None:
            data["password"] = hashlib.md5(password).hexdigest()

        api = SimpleApi(api_url=self.update_url, post_data=data)
        return api.get_data()