@serodigital/national-grid-api-client
v1.0.5
Published
A Typescript Api Client for National Grid Carbon Intensity.
Downloads
1
Readme
National Grid Carbon Intensity Api Client
A Typescript Api Client for National Grid Carbon Intensity.
Built using OpenAPIGenerator.
Installing
npm i @serodigital/national-grid-api-client
Usage
const apiClient = new NationalGridApiClient();
const carbonIntensityNationalApiClient = apiClient.carbonIntensityNationalApi;
const carbonIntensityRegionalApiClient = apiClient.carbonIntensityRegionalBetaApi;
const generationMixNationalApiClient = apiClient.generationMixNationalBetaApi;
const statisticsNationalApiClient = apiClient.statisticsNationalApi;
const result = await carbonIntensityNationalApiClient.intensityGet();
console.log(result.data.data);