myhomie_app/mycore_api/doc/EnergyApi.md
2021-12-01 15:41:22 +01:00

1.6 KiB

mycoreapi.api.EnergyApi

Load the API package

import 'package:mycoreapi/api.dart';

All URIs are relative to http://192.168.31.140

Method HTTP request Description
energyGetElectricityProduction GET /api/energy/electricity Get summary production of Kwh/Year

energyGetElectricityProduction

List energyGetElectricityProduction(homeId, viewBy)

Get summary production of Kwh/Year

Example

import 'package:mycoreapi/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = EnergyApi();
final homeId = homeId_example; // String | 
final viewBy = ; // ViewBy | 

try { 
    final result = api_instance.energyGetElectricityProduction(homeId, viewBy);
    print(result);
} catch (e) {
    print('Exception when calling EnergyApi->energyGetElectricityProduction: $e\n');
}

Parameters

Name Type Description Notes
homeId String [optional]
viewBy ViewBy [optional]

Return type

List

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]