Get HDO commands
curl --request GET \
--url https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/commands \
--header 'Authorization: Bearer <token>'using RestSharp;
var options = new RestClientOptions("https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/commands");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/commands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/commands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
"A1B4DP6",
"A3B7DP1",
"EVV2"
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Reference data
Get HDO commands
The currently-valid HDO commands for a distributor, optionally narrowed to one region. Use one as
distribution.lowTariffCommand on a two-tariff sazba.
GET
/
api
/
v1
/
reference
/
distributors
/
{distributor}
/
commands
Get HDO commands
curl --request GET \
--url https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/commands \
--header 'Authorization: Bearer <token>'using RestSharp;
var options = new RestClientOptions("https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/commands");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/commands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/commands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
"A1B4DP6",
"A3B7DP1",
"EVV2"
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
Query Parameters
Response
OK
Was this page helpful?