code: def authenticate(self):
          
          try:
              payload = self._api.domain.info(self._api_key, self._domain)
              self._zone_id = payload['zone_id']
              return payload['id']
          except xmlrpclib.Fault as err:
              raise Exception("Failed to authenticate: '{0}'".format(err))
docs: Determine the current domain and zone IDs for the domain.