GetTruckTripSchedule
- This method contains the Truck Trip Schedule.
-
Returns following information:
- Vehicle Loading Status with AutoGuard Unique Vehicle Identification number(VehicleId), Source Name, Destination Name, Truck Capacity, Delivery Volume, Schedule Date,Estimated Pickup Time And Estimated Arrival Time.
Use Case
- Use to query to get the Truck Trip Schedule with VehicleId, Source Name, Destination Name, Truck Capacity, Delivery Volume, Schedule Date,Estimated Pickup Time And Estimated Arrival Time.
Use an HTTP GET request to obtain your vehicles' Trip Schedule:
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
Parameter Name | Description | Value Format | Example |
---|---|---|---|
Vehicle ID | To get the Truck Loading Status of a specific vehicle. | numeric | 825 |
Trip Schedule Date | Schedule Date Date for your query* | MM/dd/yyyy | 10/30/2022 |
Create GetTruckTripSchedule Object
Below is the GetTruckTripSchedule 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/GetTruckTripSchedule");
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/GetTruckTripSchedule",
dataType: "json",
success: function(data){
//data object will contain the result as a JSON object
}
});
Sample GetTruckTripSchedule Object
A successful request will return the following JSON result:
Test
Test the GetTruckTripSchedule using your AccessToken by entering it below:
Clicking the test button will send a request to the AutoGuard API and display the result below.