Read one owned report, optionally long-polling an active run
curl --request GET \
--url https://chargerdojo.com/api/v1/testing/runs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://chargerdojo.com/api/v1/testing/runs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://chargerdojo.com/api/v1/testing/runs/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chargerdojo.com/api/v1/testing/runs/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://chargerdojo.com/api/v1/testing/runs/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chargerdojo.com/api/v1/testing/runs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://chargerdojo.com/api/v1/testing/runs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"_id": "<string>",
"status": "queued",
"ocpiVersion": "<string>",
"runKind": "conformance",
"connectionLabel": "<string>",
"seed": "<string>",
"provenance": {
"toolVersion": "<string>",
"rosterHash": "<string>",
"specVersions": [
"<string>"
]
},
"module": "<string>",
"withheldModules": [
"<string>"
],
"draining": true,
"summary": {
"total": 123,
"passed": 123,
"failed": 123,
"warned": 123,
"unobservable": 123
},
"suites": [
{
"suiteId": "<string>",
"module": "<string>",
"total": 123,
"passed": 123,
"failed": 123,
"warned": 123,
"checks": [
{
"testId": "<string>",
"name": "<string>",
"passed": true,
"expectedStatus": [
123
],
"actualStatus": 123,
"validations": [
{
"passed": true,
"message": "<string>",
"name": "<string>",
"required": true,
"severity": "shall",
"unobservable": true,
"references": [
{
"path": "<string>",
"section": "<string>",
"anchor": "<string>",
"documentTitle": "<string>",
"page": 123,
"strength": "SHALL",
"quote": "<string>"
}
],
"details": "<unknown>"
}
],
"unreached": "dependency",
"transportKind": "DNS",
"unobservable": true,
"warnings": [
{
"passed": true,
"message": "<string>",
"name": "<string>",
"required": true,
"severity": "shall",
"unobservable": true,
"references": [
{
"path": "<string>",
"section": "<string>",
"anchor": "<string>",
"documentTitle": "<string>",
"page": 123,
"strength": "SHALL",
"quote": "<string>"
}
],
"details": "<unknown>"
}
],
"references": [
{
"path": "<string>",
"section": "<string>",
"anchor": "<string>",
"documentTitle": "<string>",
"page": 123,
"strength": "SHALL",
"quote": "<string>"
}
],
"sourceCitations": [
{
"path": "<string>",
"section": "<string>",
"anchor": "<string>",
"documentTitle": "<string>",
"page": 123,
"strength": "SHALL",
"quote": "<string>"
}
],
"provenBy": [
{
"id": "<string>",
"breaks": "<string>"
}
],
"exchange": {
"request": {
"method": "<string>",
"url": "<string>",
"headers": {},
"headersTruncated": true,
"body": "<unknown>",
"bodyTruncated": true
},
"response": {
"status": 123,
"headers": {},
"headersTruncated": true,
"body": "<unknown>",
"bodyTruncated": true
},
"latencyMs": 123,
"error": "<string>",
"errorTruncated": true
}
}
],
"unobservable": 123
}
]
},
"meta": {
"limit": 123,
"skip": 123,
"nextCursor": "<string>"
}
}{
"success": false,
"message": "<string>",
"status": "error",
"code": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"capability": "external-endpoints",
"limit": {
"id": "connections",
"used": 123,
"cap": 123
}
}{
"success": false,
"message": "<string>",
"status": "error",
"code": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"capability": "external-endpoints",
"limit": {
"id": "connections",
"used": 123,
"cap": 123
}
}{
"success": false,
"message": "<string>",
"status": "error",
"code": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"capability": "external-endpoints",
"limit": {
"id": "connections",
"used": 123,
"cap": 123
}
}Reports
Read a run report
Read a single run report you own by id. Add the wait query parameter to long-poll an active run until it changes, awaiting a verdict without tight polling.
GET
/
testing
/
runs
/
{id}
Read one owned report, optionally long-polling an active run
curl --request GET \
--url https://chargerdojo.com/api/v1/testing/runs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://chargerdojo.com/api/v1/testing/runs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://chargerdojo.com/api/v1/testing/runs/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chargerdojo.com/api/v1/testing/runs/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://chargerdojo.com/api/v1/testing/runs/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chargerdojo.com/api/v1/testing/runs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://chargerdojo.com/api/v1/testing/runs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"_id": "<string>",
"status": "queued",
"ocpiVersion": "<string>",
"runKind": "conformance",
"connectionLabel": "<string>",
"seed": "<string>",
"provenance": {
"toolVersion": "<string>",
"rosterHash": "<string>",
"specVersions": [
"<string>"
]
},
"module": "<string>",
"withheldModules": [
"<string>"
],
"draining": true,
"summary": {
"total": 123,
"passed": 123,
"failed": 123,
"warned": 123,
"unobservable": 123
},
"suites": [
{
"suiteId": "<string>",
"module": "<string>",
"total": 123,
"passed": 123,
"failed": 123,
"warned": 123,
"checks": [
{
"testId": "<string>",
"name": "<string>",
"passed": true,
"expectedStatus": [
123
],
"actualStatus": 123,
"validations": [
{
"passed": true,
"message": "<string>",
"name": "<string>",
"required": true,
"severity": "shall",
"unobservable": true,
"references": [
{
"path": "<string>",
"section": "<string>",
"anchor": "<string>",
"documentTitle": "<string>",
"page": 123,
"strength": "SHALL",
"quote": "<string>"
}
],
"details": "<unknown>"
}
],
"unreached": "dependency",
"transportKind": "DNS",
"unobservable": true,
"warnings": [
{
"passed": true,
"message": "<string>",
"name": "<string>",
"required": true,
"severity": "shall",
"unobservable": true,
"references": [
{
"path": "<string>",
"section": "<string>",
"anchor": "<string>",
"documentTitle": "<string>",
"page": 123,
"strength": "SHALL",
"quote": "<string>"
}
],
"details": "<unknown>"
}
],
"references": [
{
"path": "<string>",
"section": "<string>",
"anchor": "<string>",
"documentTitle": "<string>",
"page": 123,
"strength": "SHALL",
"quote": "<string>"
}
],
"sourceCitations": [
{
"path": "<string>",
"section": "<string>",
"anchor": "<string>",
"documentTitle": "<string>",
"page": 123,
"strength": "SHALL",
"quote": "<string>"
}
],
"provenBy": [
{
"id": "<string>",
"breaks": "<string>"
}
],
"exchange": {
"request": {
"method": "<string>",
"url": "<string>",
"headers": {},
"headersTruncated": true,
"body": "<unknown>",
"bodyTruncated": true
},
"response": {
"status": 123,
"headers": {},
"headersTruncated": true,
"body": "<unknown>",
"bodyTruncated": true
},
"latencyMs": 123,
"error": "<string>",
"errorTruncated": true
}
}
],
"unobservable": 123
}
]
},
"meta": {
"limit": 123,
"skip": 123,
"nextCursor": "<string>"
}
}{
"success": false,
"message": "<string>",
"status": "error",
"code": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"capability": "external-endpoints",
"limit": {
"id": "connections",
"used": 123,
"cap": 123
}
}{
"success": false,
"message": "<string>",
"status": "error",
"code": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"capability": "external-endpoints",
"limit": {
"id": "connections",
"used": 123,
"cap": 123
}
}{
"success": false,
"message": "<string>",
"status": "error",
"code": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"capability": "external-endpoints",
"limit": {
"id": "connections",
"used": 123,
"cap": 123
}
}Authorizations
A cdojo_... API key created in the app under Settings.
Path Parameters
Identifier from the path. Owner scoped: another owner's id answers 404.
Query Parameters
Seconds to long-poll before answering. Values above 55 are clamped to 55. Omit to answer immediately.
Required range:
1 <= x <= 55