def _make_ppp(self, method, url, payload):
self._init_session()<EOL>self.session.cache.clear()<EOL>m = getattr(self.session, method)<EOL>r = m(url, json=payload)<EOL>try:<EOL><INDENT>r.raise_for_status()<EOL><DEDENT>except Timeout as e:<EOL><INDENT>raise ApiTimeout(e.__str__(), response=e.response)  <EOL><DEDENT>except HTTPError as e:<EOL><INDENT>if e.response.status_code in (<NUM_LIT>, <NUM_LIT>):<EOL><INDENT>raise AuthenticationError(e.__str__(), response=e.response)  <EOL><DEDENT>else:<EOL><INDENT>raise ApiError(e.__str__(), response=e.response)  <EOL><DEDENT><DEDENT>return r.json()<EOL>
Internal helper to make POST/PUT/PATCH requests (or whatever the underlying library supports)