CmsClient

Type: Class

How to get CmsClient?

JavaScript

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.

Constructor arguments

  1. configuration

    (Required)

    Type: Object

Methods

sendRequest

Type: Function

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

Arguments

Returns

sendRequestToUrl

Type: Function

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.

Arguments

Returns