TruckLoadingStatus
- This method contains the Loading Status of the vehicle.
-
Returns following information:
- Vehicle Loading Status with AutoGuard Unique Vehicle Identification number(VehicleId), VehicleName, Driver Information, Current Status And Location, Source Name, Destination Name And Estimated Arrival Time.
Use Case
- Use to query to get the Truck Loading Status with Driver Information, Source Name, Destination Name, Current Location And Status
Use an HTTP GET request to obtain your vehicles' Current Loading Status:
Request Header
The request header should contain the API Token obtained from the authentication process. Get Access Token.
Header Name | Description |
---|---|
Authorization | API Token obtained from the 1st step's authentication process. |
URL Parameter
If you want to receive Truck Loading Status for a specific vehicle, the URL should contain the VehicleID parameter below.
Parameter Name | Description | Value Format | Example |
---|---|---|---|
Vehicle ID (Optional) | To get the Truck Loading Status of a specific vehicle. | numeric | 825 |
Create TruckLoadingStatus Object
Below is the TruckLoadingStatus request API examples:
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization","Bearer YOUR_API_TOKEN")
var response = await client.GetAsync("https://secure.autoguardtracking.com/WebApi/api/v2.0/TruckLoadingStatus");
var responseString = await response.Content.ReadAsStringAsync();
//responseString will contain the response in JSON format
$.ajax({
beforeSend: function(xhrObj){
xhrObj.setRequestHeader("Authorization","Bearer YOUR_API_TOKEN");
},
type: "GET",
url: "https://secure.autoguardtracking.com/WebApi/api/v2.0/TruckLoadingStatus",
dataType: "json",
success: function(data){
//data object will contain the result as a JSON object
}
});
Sample TruckLoadingStatus Object
A successful request will return the following JSON result:
Test
Test the TruckLoadingStatus using your AccessToken by entering it below:
Clicking the test button will send a request to the AutoGuard API and display the result below.