def post_data(self): post_data = self._dict.get("postData", {}) params = { unquote_plus(h["name"]): unquote_plus(h["value"]) for h in post_data.get("params", []) } mime_type = post_data.get("mimeType", None) return params, get_renderer(mime_type=mime_type)
def login(self, **kwargs): """ Login abstract method with default implementation. :param kwargs: parameters :return: SdkResponse """ assert self.LOGIN_URL_PATH is not None render_name = kwargs.pop("render", "json") render = get_renderer(render_name) params = parse_args(**kwargs) return self.post(self.LOGIN_URL_PATH, body_params=params, render=render)