def _make_request(self, action):
if isinstance(action, list):<EOL><INDENT>kwargs = {'<STR_LIT>': action}<EOL>action = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>kwargs = self._get_method_params()<EOL><DEDENT>kwargs.update({<EOL>'<STR_LIT>': self._consumer_key,<EOL>'<STR_LIT>': self._access_token<EOL>})<EOL>response = requests.post(<EOL>self._get_url(action),<EOL>json=kwargs,<EOL>headers=self._get_headers()<EOL>)<EOL>if response.status_code != requests.codes.ok:<EOL><INDENT>raise self._make_exception(response)<EOL><DEDENT>return response.json()<EOL>
Perform the request
:param action: action name
:return: a dict containing the request result
:rtype: dict