wiki:Developer_API_Specs

Developer API

The base URL for the API is  http://www.moostrax.com/dev/api/

Introduction

All API calls must include your API Key, which is found on the menu to the left, under Extras...Developers, when logged into your account. This key will allow you to access information for all devices associated with your account.

The parameter for the API key is api_key

All API calls use HTTP GET.

Example

 http://www.moostrax.com/dev/api/devices?api_key=mykey

The above URL will retrieve all devices for your account.

Response Format

Responses can be returned in XML or JSON format. By default they are returned in XML. To specify the format you would like, pass the parameter format with a value of xml or json.

Example

 http://www.moostrax.com/dev/api/devices?api_key=mykey&output=json

API Methods

/dev/api/devices/ - Gets a list of devices for your account.

/dev/api/device/ - Gets a device's info.

/dev/api/location/ - Gets the current location for a device.

/dev/api/history/ - Returns the history for a device.

Libraries

If you don't want to implement the API yourself, please check for an existing developer library.