Making API Requests - Android SDK

To make requests against the Geoloqi REST API, you'll need an instance of LQSession. You can easily get the active session instance by binding to the background service.
Once you've bound to the tracking service you can invoke the service's getSession method to get an instance of the active user session. Once you've done that, you can invoke any of the provided runGetRequest or runPostRequest helper methods.

The API request is run asynchronously on a background Thread. Simply provide a callback listener to receive the response and you're done! The session instance automagically signs the request with the credentials of the currently authenticated user. If you're calling one of the LQSession methods that create a user, the request will be signed with your application credentials.