Get Review Result
Find the id of review result once the review generation is completed.
GET https://instance.securid.com/aveksa/command.submit?cmd=getReviewResult
Request
Parameters
getReviewResult | |
format | properties - (Default) key=value . most useful when requesting a single object. If multiple objects are returned, values is a csv. ie key=value1,value2,value3 where value1 is the value for the first object, value2 is the value for the 2nd object, etc.json - Useful format for parsing into javascript or other languages. See www.json.org for details. |
The id assigned to the generation of the review. |
Headers
Bearer token | |
Accept | application/json |
Content-Type | application/json |
Response
Parameters
type | Executed command name |
id | The id of the review result. |
Examples
Request
- Curl
- Python
- Node.js
curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=getReviewResult&format=json&run-id=5912" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"
import requests
url = "https://instance.securid.com/aveksa/command.submit"
params = {
"cmd": "getReviewResult",
"format": "json",
"run-id": "5917"
}
headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
}
response = requests.get(url, params=params, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code {response.status_code}")
const axios = require('axios');
const url = "https://instance.securid.com/aveksa/command.submit";
const params = {
"cmd": "getReviewResult",
"format": "json",
"run-id": "5917"
};
const headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
};
axios.get(url, { params, headers })
.then(response => {
if (response.status === 200) {
console.log(response.data);
} else {
console.log(`Request failed with status code ${response.status}`);
}
})
.catch(error => {
console.error('Error:', error);
});
Response
- 200
- 404 Invalid Run ID
{
"data": {
"type": "getReviewResult",
"id": "61"
}
}
<html>
<head>
<title>Error</title>
</head>
<body>Could not find a generated review for run id 21 Query
String=cmd=getReviewResult&format=json&run-id=21</body>
</html>