All URIs are relative to https://epic.zenotech.com/api/v2
Method | HTTP request | Description |
---|---|---|
config_read | GET /config/{app_code}/{queue_code}/ |
SiteConfigurationSerialiser config_read(app_code, queue_code)
Fetch the application configuration for <app_code> running on <queue_code>. Only accessable to authorised users.
- Api Key Authentication (Bearer):
import time
import os
import epiccore
from epiccore.models.site_configuration_serialiser import SiteConfigurationSerialiser
from epiccore.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://epic.zenotech.com/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = epiccore.Configuration(
host = "https://epic.zenotech.com/api/v2"
)
# 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: Bearer
configuration.api_key['Bearer'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Bearer'] = 'Bearer'
# Enter a context with an instance of the API client
with epiccore.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = epiccore.ConfigApi(api_client)
app_code = 'app_code_example' # str |
queue_code = 'queue_code_example' # str |
try:
api_response = api_instance.config_read(app_code, queue_code)
print("The response of ConfigApi->config_read:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ConfigApi->config_read: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
app_code | str | ||
queue_code | str |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]