All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
evinterface_get | GET /evinterface | Get EV interface information |
EVInterfaceResponse evinterface_get()
Get EV interface information
- Api Key Authentication (ApiToken):
import pyPeblar
from pyPeblar.models.ev_interface_response import EVInterfaceResponse
from pyPeblar.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = pyPeblar.Configuration(
host = "http://localhost"
)
# 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 API key authorization: ApiToken
configuration.api_key['ApiToken'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiToken'] = 'Bearer'
# Enter a context with an instance of the API client
async with pyPeblar.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pyPeblar.EVInterfaceApi(api_client)
try:
# Get EV interface information
api_response = await api_instance.evinterface_get()
print("The response of EVInterfaceApi->evinterface_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling EVInterfaceApi->evinterface_get: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Succes. The response contains information about the EV interface state. | - |
400 | Bad request. | - |
401 | Unauthorized. An API token is required. | - |
0 | Error condition | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]