1.4.0-apiSpec.1.4.0 • Published 4 months ago

@climatepartner/climatepartner-api-sdk v1.4.0-apiSpec.1.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@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

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

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