No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.6
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 3.7+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import openapi_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import openapi_client
Execute pytest
to run the tests.
Please follow the installation procedure and then run the following:
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.givenergy.cloud/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "https://api.givenergy.cloud/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: default
configuration = openapi_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.AccountApi(api_client)
user_id = '1234' # str | The ID of the user.
page = 1 # int | Page number to return (optional)
page_size = 56 # int | Number of items to return in a page. Defaults to 15 (optional)
authorization = 'Bearer {YOUR_API_KEY}' # str | (optional)
try:
# Get Account Children Information by ID
api_response = api_instance.get_account_children_information_by_id(user_id, page=page, page_size=page_size, authorization=authorization)
print("The response of AccountApi->get_account_children_information_by_id:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->get_account_children_information_by_id: %s\n" % e)
All URIs are relative to https://api.givenergy.cloud/v1
Class | Method | HTTP request | Description |
---|---|---|---|
AccountApi | get_account_children_information_by_id | GET /account-children/{user_id} | Get Account Children Information by ID |
AccountApi | get_account_dongles_by_id | GET /account/{user_username}/devices | Get Account Dongles by ID |
AccountApi | get_account_information_by_id | GET /account/{user_id} | Get Account Information by ID |
AccountApi | get_account_information_by_username | GET /account/search/{user_username} | Get Account Information by Username |
AccountApi | get_your_account_children_information | GET /account-children | Get Your Account Children Information |
AccountApi | get_your_account_information | GET /account | Get Your Account Information |
CommunicationDeviceApi | get_communication_device_information_by_serial_number | GET /communication-device/{communicationDevice_serial_number} | Get Communication Device Information by Serial Number |
EVChargerApi | evget_data_points | GET /ev-charger/{charger_uuid}/meter-data | Get Data Points |
EVChargerApi | get_charging_sessions | GET /ev-charger/{charger_uuid}/charging-sessions | Get Charging Sessions |
EVChargerApi | get_command_data | GET /ev-charger/{charger_uuid}/commands/{command_id} | Get Command Data |
EVChargerApi | get_ev_charger_by_uuid | GET /ev-charger/{charger_uuid} | Get EV Charger by UUID |
EVChargerApi | get_supported_commands | GET /ev-charger/{charger_uuid}/commands | Get Supported Commands |
EVChargerApi | get_your_ev_chargers | GET /ev-charger | Get Your EV Chargers |
EVChargerApi | send_command | POST /ev-charger/{charger_uuid}/commands/{command_id} | Send Command |
EnergyFlowDataApi | get_energy_flow_data | POST /inverter/{inverter_serial_number}/energy-flows | Get Energy Flow Data |
InverterControlApi | get_setting_presets | GET /inverter/{inverter_serial_number}/presets | Get Setting Presets |
InverterControlApi | get_settings_list | GET /inverter/{inverter_serial_number}/settings | Get Settings List |
InverterControlApi | modify_preset | POST /inverter/{inverter_serial_number}/presets/{preset} | Modify Preset |
InverterControlApi | modify_setting | POST /inverter/{inverter_serial_number}/settings/{setting_id}/write | Modify Setting |
InverterControlApi | modify_setting_multiple | POST /multi-control/write | Modify Setting (Multiple) |
InverterControlApi | read_setting | POST /inverter/{inverter_serial_number}/settings/{setting_id}/read | Read Setting |
InverterControlApi | read_setting_multiple | POST /multi-control/read | Read Setting (Multiple) |
InverterDataApi | get_data_points | GET /inverter/{inverter_serial_number}/data-points/{date} | Get Data Points |
InverterDataApi | get_events | GET /inverter/{inverter_serial_number}/events | Get Events |
InverterDataApi | get_latest_meter_data | GET /inverter/{inverter_serial_number}/meter-data/latest | Get Latest Meter Data |
InverterDataApi | get_latest_system_data | GET /inverter/{inverter_serial_number}/system-data/latest | Get Latest System Data |
SmartDeviceApi | create_smart_device_data_point | POST /smart-device/{smartDevice_uuid}/data | Create Smart Device Data Point |
SmartDeviceApi | get_smart_device_by_id | GET /smart-device/{smartDevice_uuid} | Get Smart Device by ID |
SmartDeviceApi | get_smart_device_data_points_by_id | GET /smart-device/{smartDevice_uuid}/data | Get Smart Device Data Points by ID |
- CreateSmartDeviceDataPoint200Response
- CreateSmartDeviceDataPoint200ResponseDataInner
- CreateSmartDeviceDataPointRequest
- EvgetDataPoints200Response
- EvgetDataPoints200ResponseDataInner
- EvgetDataPoints200ResponseDataInnerMeasurementsInner
- GetAccountChildrenInformationByID200Response
- GetAccountChildrenInformationByID200ResponseDataInner
- GetAccountDonglesByID200Response
- GetAccountDonglesByID200ResponseDataInner
- GetAccountDonglesByID200ResponseDataInnerInverter
- GetAccountDonglesByID200ResponseDataInnerInverterConnections
- GetAccountDonglesByID200ResponseDataInnerInverterConnectionsBatteriesInner
- GetAccountDonglesByID200ResponseDataInnerInverterConnectionsBatteriesInnerCapacity
- GetAccountDonglesByID200ResponseDataInnerInverterFirmwareVersion
- GetAccountDonglesByID200ResponseDataInnerInverterInfo
- GetAccountDonglesByID200ResponseDataInnerInverterInfoBattery
- GetAccountDonglesByID200ResponseDataInnerInverterWarranty
- GetAccountInformationByID200Response
- GetAccountInformationByID200ResponseData
- GetAccountInformationByUsername200Response
- GetAccountInformationByUsername200ResponseData
- GetChargingSessions200Response
- GetChargingSessions200ResponseDataInner
- GetChargingSessionsRequest
- GetCommandData200Response
- GetCommandData200ResponseData
- GetCommunicationDeviceInformationBySerialNumber200Response
- GetCommunicationDeviceInformationBySerialNumber200ResponseData
- GetCommunicationDeviceInformationBySerialNumber200ResponseDataInverter
- GetCommunicationDeviceInformationBySerialNumber200ResponseDataInverterConnections
- GetCommunicationDeviceInformationBySerialNumber200ResponseDataInverterConnectionsBatteriesInner
- GetCommunicationDeviceInformationBySerialNumber200ResponseDataInverterConnectionsBatteriesInnerCapacity
- GetCommunicationDeviceInformationBySerialNumber200ResponseDataInverterFirmwareVersion
- GetCommunicationDeviceInformationBySerialNumber200ResponseDataInverterInfo
- GetCommunicationDeviceInformationBySerialNumber200ResponseDataInverterInfoBattery
- GetCommunicationDeviceInformationBySerialNumber200ResponseDataInverterWarranty
- GetDataPoints200Response
- GetDataPoints200ResponseDataInner
- GetDataPoints200ResponseDataInnerPower
- GetDataPoints200ResponseDataInnerPowerBattery
- GetDataPoints200ResponseDataInnerPowerConsumption
- GetDataPoints200ResponseDataInnerPowerGrid
- GetDataPoints200ResponseDataInnerPowerInverter
- GetDataPoints200ResponseDataInnerPowerSolar
- GetDataPoints200ResponseDataInnerPowerSolarArraysInner
- GetDataPoints200ResponseDataInnerToday
- GetDataPoints200ResponseDataInnerTodayBattery
- GetDataPoints200ResponseDataInnerTodayGrid
- GetDataPoints200ResponseDataInnerTotal
- GetDataPoints200ResponseDataInnerTotalBattery
- GetDataPoints200ResponseDataInnerTotalGrid
- GetEVChargerByUUID200Response
- GetEVChargerByUUID200ResponseData
- GetEnergyFlowDataRequest
- GetEvents200Response
- GetEvents200ResponseDataInner
- GetEventsRequest
- GetLatestMeterData200Response
- GetLatestMeterData200ResponseData
- GetLatestMeterData200ResponseDataToday
- GetLatestMeterData200ResponseDataTodayBattery
- GetLatestMeterData200ResponseDataTodayGrid
- GetLatestMeterData200ResponseDataTotal
- GetLatestMeterData200ResponseDataTotalBattery
- GetLatestMeterData200ResponseDataTotalGrid
- GetLatestSystemData200Response
- GetLatestSystemData200ResponseData
- GetLatestSystemData200ResponseDataBattery
- GetLatestSystemData200ResponseDataGrid
- GetLatestSystemData200ResponseDataInverter
- GetLatestSystemData200ResponseDataSolar
- GetLatestSystemData200ResponseDataSolarArraysInner
- GetSettingsList200Response
- GetSettingsList200ResponseDataInner
- GetSmartDeviceByID200Response
- GetSmartDeviceByID200ResponseDataInner
- GetSmartDeviceByID200ResponseDataInnerOtherData
- GetSmartDeviceDataPointsByID200Response
- GetSmartDeviceDataPointsByID200ResponseDataInner
- GetSupportedCommands200Response
- GetYourAccountChildrenInformation200Response
- GetYourAccountChildrenInformation200ResponseDataInner
- GetYourAccountInformation200Response
- GetYourAccountInformation200ResponseData
- GetYourEVChargers200Response
- GetYourEVChargers200ResponseDataInner
- ModifyPreset200Response
- ModifyPreset200ResponseData
- ModifySetting200Response
- ModifySetting200ResponseData
- ModifySettingMultipleRequest
- ReadSetting200Response
- ReadSetting200ResponseData
- ReadSettingMultipleRequest
- SendCommand200Response
- SendCommand200ResponseData
Authentication schemes defined for the API:
- Type: Bearer authentication