code: def auth(self, code):
          
          request_data = self.get_access_token_params(code)
  
          res = self._session.post(**request_data)
          if res.status_code != 200:
              raise APIException(
                  request_data['url'],
                  res.status_code,
                  response=res.content,
                  request_param=request_data,
                  response_header=res.headers
              )
  
          json_res = res.json()
          self.update_token(json_res)
          return json_res
docs: Request the token to the /oauth/token endpoint.
          Update the security tokens.
  
          :param code: the code you get from the auth process