code: def _request(self, base_url, client_id, client_secret,
                   parameters, **kwargs):
          
          logging.debug('Getting an OAuth token for client "%s" with scope "%s"',
                        client_id, parameters.get('scope'))
          headers = {'Content-Type': 'application/x-www-form-urlencoded',
                     'Accept': 'application/json'}
  
          api = API(base_url,
                    auth_username=client_id,
                    auth_password=client_secret,
                    **kwargs)
          endpoint = api.auth.token
  
          response = yield endpoint.post(body=urllib.urlencode(parameters),
                                         request_timeout=60,
                                         headers=headers)
  
          logging.debug('Received token: %s', response.get('access_token'))
          raise Return(response)
docs: Make an API request to get the token