@climatepartner/climatepartner-api-sdk
Version:
The ClimatePartner API provides one uniform public API to customers of ClimatePartner.
50 lines (33 loc) • 1.31 kB
Markdown
The ClimatePartner 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.
For more information on this package please read the public documentation
https://climatepartner.gitbook.io/climatepartner-api
yarn add @climatepartner/climatepartner-api-sdk
npm i @climatepartner/climatepartner-api-sdk
```ts
import { ClimatePartnerApi } from '@climatepartner/climatepartner-api-sdk'
const climatePartnerApi = new ClimatePartnerApi({
longtermToken: 'longtermToken',
endpointUrl: 'endpointUrl',
authorizationStoragePath: '/path/to/file.json',
})
const test = climatePartnerApi.getOrderService()
```
```ts
const { ClimatePartnerApi } = require('@climatepartner/climatepartner-api-sdk')
const climatePartnerApi = new ClimatePartnerApi({
longtermToken: 'longtermToken',
endpointUrl: 'endpointUrl',
authorizationStoragePath: '/path/to/file.json',
})
const test = climatePartnerApi.getOrderService()
```
Please do not define "type": "module" in your package.json file