code: def _login(self, username, password, client_id, client_secret):
          
          url = self.api_url + self.auth_token_url
          auth_string = '%s:%s' % (client_id, client_secret)
          authorization = base64.b64encode(auth_string.encode()).decode()
          headers = {
              'Authorization': "Basic " + authorization,
              'Content-Type': "application/x-www-form-urlencoded"
          }
          params = {
              'username': str(username),
              'password': str(password),
              # 'client_id': client_id,
              'grant_type': 'password',
              'response_type': 'token'
          }
          return self.session.post(url, params=params, headers=headers)
docs: Performs login with the provided credentials