How to get CmsClient?
import CmsClient from 'fontoxml-connector/src/CmsClient.js'
Base class, used by connectors to send requests to the CMS.
In most situations, you probably want to use the StandardCmsClient instance.
Creates an object that can be used as the context request parameter, as commonly seen by requests made in the Standard CMS Connector.
The context includes an
editSessionToken, which can be used to uniquely identify the instance of Fonto. See Invocation of the Fonto Editor for details.
For requests that are associated with a specific document, we recommend including a
documentId property in the same context object containing the RemoteDocumentId of that document. This is done automatically by passing that RemoteDocumentId to this method.
Send a request using the specified HTTP method to the named endpoint on the scope-provided CMS base URL, passing the data represented by the given RequestData instance
Request To Url
Send a request using the specified HTTP method to the given url, passing the data represented by the given RequestData instance.
For requests to endpoints on the standard CMS backend, use the sendRequest method instead.