docs: def authenticate(self, reauth=False):
          """
          Authenticate with the API and return an authentication token.
          """
          auth_url = BASE_URL + "/rest/user"
          payload = {'email': self.email, 'password': self.password}
          arequest = requests.get(auth_url, params=payload)
          status = arequest.status_code
          if status != 200:
              if reauth:
                  _LOGGER.error("Reauthentication request failed. " + status)
              else:
                  _LOGGER.error("Authentication request failed, please check credintials. " + status)
          self.token = arequest.json().get('usertoken')
          if reauth:
              _LOGGER.info("Reauthentication was successful, token updated.")
          else:
              _LOGGER.info("Authentication was successful, token set.")