GET http:///fleet.roadprotect.co.il/api/v1/query/contract
| Parameter name | Value | Description | Additional |
|---|---|---|---|
| mine | string | ||
| startDate | string | ||
| endDate | string | ||
| via | string |
Possible values are:
|
|
| graphing | string |
Possible values are:
|
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 | Contract |
| 401 | Unauthorized Unauthorized |
|
| 500 | Internal Server Error Invalid query parameters |
var request = require('request');
var options = {
'method': 'GET',
'url': 'http://fleet.roadprotect.co.il/api/v1/query/contract?limit=10&page=1&mine=true',
'headers': {
'Authorization': 'Bearer YOUR_TOKEN_HERE'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
Replace CONTRACT_ID with the desired contractId.
import requests
url = "http://fleet.roadprotect.co.il//api/v1/query/contract?limit=10&page=1&mine=true"
payload={}
headers = {
'Authorization': 'Bearer YOUR_TOKEN_HERE'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)