def ingest(self, text, log_message=None):
        """
        Ingest a new object into Fedora. Returns the pid of the new object on
        success.  Calls :meth:`ApiFacade.ingest`.

        :param text: full text content of the object to be ingested
        :param log_message: optional log message
        :rtype: string
        """
        kwargs = {'text': text}
        if log_message:
            kwargs['logMessage'] = log_message
        response = self.api.ingest(**kwargs)
        return response.content