Download the PHP package travisamiller/spot-tracker-api without Composer
On this page you can find all versions of the php package travisamiller/spot-tracker-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download travisamiller/spot-tracker-api
More information about travisamiller/spot-tracker-api
Files in travisamiller/spot-tracker-api
Package spot-tracker-api
Short Description An API client for Spot Tracker Shared Pages API.
License MIT
Informations about the package spot-tracker-api
Spot Tracker API Client
A PHP client for the Spot Tracker Shared Page API.
About the API
Though it is not overly publicized there is a free, public data feed available for Spot Trackers available providing detailed tracking data for each device for the last 7 days.
Relatively sparse documentation is available here: http://faq.findmespot.com/index.php?action=showEntry&data=69
The information provided by this API is the same information one would see on their Spot Shared Page.
Data returned from this API is encoded as either XML or JSON depending on the request URI.
Some feeds are password protected and the caller must pass a matches password in order to retrieve data.
API Request Types
The API supports two types of feeds: latest and messages.
Latest Message Request
Returns the most recent (single) position data available from a feed. As the result of this call is a single message there is no filtering or pagination of results.
This is most useful if just need to know at a given time where a device is currently located.
Message Feed Request
Returns a list of messages based on (optional) criteria provided by the caller. Messages are automatically paginated into result sets of 50 by the remote server.
Additionally, some filters can be applied to the messages feed.
The response contains some methods to make pagination easier.
The following code will retrieve all available messages from the API:
Custom Request Filters
In addition to providing request filters as an array:
It is also possible to pass a request filter directly:
This allows for the re-use of a filter across many requests.