@vdocdk/meterportal-client
v1.1.7
Published
Api client wrapper for meterportal.eu
Downloads
5
Readme
Installation
npm i @vdocdk/meterportal-client
- follow usage
Usage
import Meterportal from '@vdocdk/meterportal-client';
//whitout api key
const { api } = new Meterportal();
//optional api key for partner
const { api } = new Meterportal('the api key');
const example = async () => {
//dont require token
const testRequest = await api.getGuestRentalPeriodMetrics("rentalAgencyCode", "guestAccessCode");
console.log(testRequest);
//require token if partner api
const testRequestv2 = await api.partnerGetAddressesForAgency();
console.log(testRequestv2);
};
example();
Author
vdoc ApS Support and help at vdoc.dk