exports

exports




new exports(options) → {CachetAPI}

Create a new CachetAPI

Parameters:
Name Type Description
options Object

Options about the CachetAPI Instance

Properties
Name Type Attributes Description
url String

The URL of the CachetAPI Instance

apiToken String <optional>

The API Token for the CachetAPI Instance

Source:
Example
import CachetAPI from 'cachetapi'

let cachet_api = new CachetAPI({
	url: "https://demo.cachethq.io/api",
	apiToken: "9yMHsdioQosnyVK4iCVR"
})
Returns:
Type:
CachetAPI