6.2.6-apiSpec.5.0.2 • Published 2 years ago

@climatepartner/unified-api-sdk v6.2.6-apiSpec.5.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@climatepartner/unified-api-sdk

The Unified API provides one uniform public API to customers of ClimatePartner. Our vision is to make the rich feature set of the ClimatePartner products available to our customers and other third parties through API’s and other technologies.

Setup

yarn add @climatepartner/unified-api-sdk
npm i @climatepartner/unified-api-sdk

Usage

For typescript users

import { UnifiedApi } from '@climatepartner/unified-api-sdk'

const unifiedApi = new UnifiedApi({
      longtermToken: 'longtermToken',
      endpointUrl: 'endpointUrl',
      authorizationStoragePath: '/path/to/file.json',
})

const test = unifiedApi.getOrderService()

For javascript users

const { UnifiedApi } = require('@climatepartner/unified-api-sdk')

const unifiedApi = new UnifiedApi({
      longtermToken: 'longtermToken',
      endpointUrl: 'endpointUrl',
      authorizationStoragePath: '/path/to/file.json',
})

const test = unifiedApi.getOrderService()

Limitations

Please do not define "type": "module" in your package.json file