optimize-api-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Optimize API Client for Node.js

NPM

Community Extension

Lifecycle

License

A Node.js client for interacting with the Camunda Platform 8 Optimize REST API.

Uses camunda-saas-oauth-nodejs to use client credentials from the environment for authentication.

Installation

npm i optimize-api-client

Usage

Set the credential for Camunda SaaS in the environment, then:

import { OptimizeApiClient } from 'optimize-api-client`

const optimize = new OperateApiClient()

async function main() {
    await optimize.enableSharing()
    const id = "8a7103a7-c086-48f8-b5b7-a7f83e864688"
    const res = await optimize.exportDashboardDefinitions([id])
    fs.writeFileSync('exported-dashboard.json', JSON.stringify(res, null, 2))
}

main()

Readme

Keywords

Package Sidebar

Install

npm i optimize-api-client

Weekly Downloads

382

Version

1.0.4

License

ISC

Unpacked Size

54.5 kB

Total Files

13

Last publish

Collaborators

  • sitapati