new exports(options) → {CachetAPI}
Create a new CachetAPI
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Options about the CachetAPI Instance Properties
|
- Source:
Example
import CachetAPI from 'cachetapi'
let cachet_api = new CachetAPI({
url: "https://demo.cachethq.io/api",
apiToken: "9yMHsdioQosnyVK4iCVR"
})
Returns:
- Type:
- CachetAPI