Skip to main content

Field Hub - Last Report for All

When accessing /FieldHubs/all via GET, the Slingshot API Server will return an XML document that contains all the last report for all Field Hubs that have been registered for the Field Hubs that are assigned to the API Key and Access Key contained in the request headers.

HTTP Method and URL

GET https://api.ravenslingshot.com/fieldhubs/all

URL Parameters

None.

HTTP Query Parameters

To learn more about these parameters, read about Result Set Paging.

ParameterDescription
pagesize[Optional] Number of rows to return for a result page.
page[Optional] Specific result page to return.

HTTP Headers

To learn more about these parameters, read about Authentication.

HeaderDescription
X-SS-AccessKey[Required] Token issued to a Slingshot user from the Raven Slingshot Portal Server.
X-SS-APIKey[Required] Token issued to the Slingshot developer from Raven.
X-SS-Signature[Required] The signature generated for a specific request.
X-SS-TimeStamp[Required] The timestamp of when the request was generated.

Sample Responses

XML

<!--?xml version="1.0" encoding="utf-8"?-->
<slingshotindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.ravenslingshot.com/SlingshotIndex/2010">
<totalcount>1</totalcount>
<pagesize>20</pagesize>
<ispreviouspage>false</ispreviouspage>
<isnextpage>false</isnextpage>
<pageindex>0</pageindex>
<totalpages>1</totalpages>
<fieldhubdetail>
<id>12345678910</id>
<name>Jack ICE ATT</name>
<make>BlueTree Wireless-Sixnet</make>
<model>BT-5800v2</model>
<fieldcomputer>54321</fieldcomputer>
<report>
<id>249330172</id>
<deviceid>12345678910</deviceid>
<subtype>Field Hub</subtype>
<lat>43.550889833333</lat>
<lon>-96.724843166667</lon>
<alt>454</alt>
<speed>0</speed>
<direction>0</direction>
<valid>false</valid>
<gpsdatetime>2013-05-06T17:37:32Z</gpsdatetime>
<active>true</active>
<event>30</event>
<rssi>-69</rssi>
<ignition>true</ignition>
<gpsfix>1</gpsfix>
<gpssat>8</gpssat>
<digitalinput1>false</digitalinput1>
<digitalinput2>false</digitalinput2>
<digitalinput3>false</digitalinput3>
<digitalinput4>false</digitalinput4>
<digitaloutput1>false</digitaloutput1>
<digitaloutput2>false</digitaloutput2>
<digitaloutput3>false</digitaloutput3>
<analoginput1>0</analoginput1>
<analoginput2>0</analoginput2>
<analoginput3>0</analoginput3>
<analoginput4>0</analoginput4>
<batteryvoltage>12.6032</batteryvoltage>
<carrier>AT&T</carrier>
<odometer>15</odometer>
<roam>0</roam>
<service>HSPA</service>
<serverdatetime>2013-05-06 17:37:34</serverdatetime>
</report>
</fieldhubdetail>
</slingshotindex>

JSON

{
"FieldHubDetail": [
{
"ID": "12345678910",
"Name": "Robert Potter 1",
"Model": "BT-5630v2",
"FieldComputer": "54321",
"Report": {
"ID": "252400163",
"DeviceId": "12345678910",
"SubType": "Field Hub",
"Lat": 0,
"Lon": 0,
"Alt": 0,
"Speed": 0,
"Direction": 0,
"Valid": true,
"GPSDateTime": "0000-00-00T00:00:00Z",
"Active": false,
"Event": "30",
"RSSI": -68,
"Ignition": true,
"GPSFix": 0,
"GPSSat": 0,
"DigitalInput1": false,
"DigitalInput2": false,
"DigitalInput3": false,
"DigitalInput4": false,
"DigitalOutput1": false,
"DigitalOutput2": false,
"DigitalOutput3": false,
"AnalogInput1": 0,
"AnalogInput2": 0,
"AnalogInput3": 0,
"AnalogInput4": 0,
"BatteryVoltage": 12.5677,
"Carrier": "Verizon",
"Odometer": 0,
"Roam": "0",
"Service": "EVDO.A",
"ServerDateTime": "2013-07-18T20:59:26Z"
}
},
{
"ID": "12345678910",
"Name": "Robert Potter 2",
"Model": "BT-5630v2",
"Report": {
"ID": "252399618",
"DeviceId": "12345678910",
"SubType": "Field Hub",
"Lat": 0,
"Lon": 0,
"Alt": 0,
"Speed": 0,
"Direction": 0,
"Valid": true,
"GPSDateTime": "0000-00-00T00:00:00Z",
"Active": false,
"Event": "30",
"RSSI": -55,
"Ignition": true,
"GPSFix": 0,
"GPSSat": 0,
"DigitalInput1": false,
"DigitalInput2": false,
"DigitalInput3": false,
"DigitalInput4": false,
"DigitalOutput1": false,
"DigitalOutput2": false,
"DigitalOutput3": false,
"AnalogInput1": 0,
"AnalogInput2": 0,
"AnalogInput3": 0,
"AnalogInput4": 0,
"BatteryVoltage": 12.6032,
"Carrier": "Verizon",
"Odometer": 0,
"Roam": "0",
"Service": "EVDO.A",
"ServerDateTime": "2013-07-18T20:44:56Z"
}
}
],
"TotalCount": 16,
"PageSize": 20,
"IsPreviousPage": false,
"IsNextPage": false,
"PageIndex": 0,
"TotalPages": 1
}