UNPKG

@climatepartner/climatepartner-api-sdk

Version:

The ClimatePartner API provides one uniform public API to customers of ClimatePartner.

50 lines (33 loc) 1.31 kB
# @climatepartner/climatepartner-api-sdk 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. ## Documentation For more information on this package please read the public documentation https://climatepartner.gitbook.io/climatepartner-api ## Setup yarn add @climatepartner/climatepartner-api-sdk npm i @climatepartner/climatepartner-api-sdk ## Usage ### For typescript users ```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() ``` ### For javascript users ```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() ``` ## Limitations Please do not define "type": "module" in your package.json file