Get Location-wise Vehicle List
- This is a POST method, using Get Location-wise Vehicle List.
Use Case
- Use to query to Get Location-wise Vehicle List
Use an HTTP POST request to Get Location-wise Vehicle List :
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. |
Request Parameters
The Request should contain the following parameters:
Parameter Name | Description | Value Format | Example |
---|---|---|---|
Point Name | Name of specefic point. | string | "BATB Dhaka Factory" |
Radius | Radius in meter | numeric | 100 |
Create Get Location-wise Vehicle List Object
Below is the Get Location-wise Vehicle List POST request examples:
var client = new HttpClient();
var values = new Dictionary
{
{ "PointName", ""BATB Dhaka Factory" " },
{ "Radius", "100 " },
};
client.DefaultRequestHeaders.Add("Authorization","Bearer YOUR_API_TOKEN")
var content = new FormUrlEncodedContent(values);
var response = await client.PostAsync("https://secure.autoguardtracking.com/WebApi/api/v2.0/GetLocationWiseVehicleList", content);
var responseString = await response.Content.ReadAsStringAsync();
//responseString will contain a Credential Object in JSON format
$.ajax({
beforeSend: function(xhrObj){
xhrObj.setRequestHeader("Authorization","Bearer YOUR_API_TOKEN");
},
type: "POST",
url: "https://secure.autoguardtracking.com/WebApi/api/v2.0/GetLocationWiseVehicleList",
dataType: "json",
data:{
PointName : "BATB Dhaka Factory" ,
Radius: "100",
},
success: function(data){
//data object will contain the result as a JSON object
}
});
Sample GetLocationWiseVehicleList Object
A successful request will return the following JSON result:
Test
Test the GetLocationWiseVehicleList using your AccessToken by entering it below:
Clicking the test button will send a request to the AutoGuard API and display the result below.