code: def _authenticate(self):
          
          data = {'username': self.username,
                  'password': self.password}
          url = '{base}/client/login'.format(base=self.base_url)
          response = self._session.get(url, params=data)
          print(response.text)
          data = response.json()
          if not data.get('success'):
              raise InvalidCredentials(data.get('reason', None))
          self._populate_info(data)
docs: Authenticates to the api and sets up client information.