GET http:///fleet.roadprotect.co.il/api/v1/nomination/{nominationId}
| Parameter name | Value | Description | Additional |
|---|---|---|---|
| nominationId | number | Required |
To authenticate your client integration please put your token in the header of your requests with the key Authorization, it should look like this:
Authorization: Bearer YOUR_TOKEN_HERE
Please keep your token secured. If your token is compromised, we can issue a new token for you.
This request requires the use of one of following authorisation methods:
API key
.
The following HTTP status codes may be returned, optionally with a response resource.
| Status code | Description | Resource |
|---|---|---|
| 200 | OK | Nomination |
| 400 | Bad Request E020: Could not find Nomination with id: nominationId |
Replace NOMINATION_ID with the desired nominationId.
var request = require('request');
var options = {
'method': 'GET',
'url': 'http://fleet.roadprotect.co.il/api/v1/nomination/NOMINATION_ID',
'headers': {
'Authorization': 'Bearer YOUR_TOKEN_HERE'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
Replace NOMINATION_ID with the desired nominationId.
import requests
url = "http://fleet.roadprotect.co.il/api/v1/nomination/NOMINATION_ID"
payload={}
headers = {
'Authorization': 'Bearer YOUR_TOKEN_HERE'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)