def get_params(self, channel, params=None): if params is None: params = {} response = Admin.get_params(self, channel, params) r = {} for line in response['response_text'].splitlines(): (key, value) = [x.strip() for x in line.split('=')] r[key] = value return r
def set_params(self, channel, params): response = Admin.set_params(self, channel, params) return 2 == (response['status_code']/100)