Moves API library to use with android. (Supports Android version 2.2 and above)
Java
Latest commit a572f84 Apr 10, 2015 @midhunarmid Urgent Fixes
+ Fixed an issue in _isRefreshTokenNeeded_ method
+ Fixed an API endpoint mismatch in _getDailyActivitiesList_ method

README.md

moves-android-api-library

Here I'm just trying to make a library to deal with Moves API calls from android. Developers can use this library project to fetch data from Moves.

Completed API Methods:

  • Authentication
  • Profile
  • Summary
  • Activities
  • Storyline
  • ... more will update soon

Remaining Pipelined Tasks:

  • Places
  • Activity list
  • Notifications

Usage:

You can just use the static methods from the main API class 'MovesAPI' after calling MovesAPI.init(...) method. All completed methods are well documented, so hope you will not face any difficulties while developing. The source is open to all (will be always) and you are free to modify it in anyway, but please update it here too. ;)

Some sample usages of MovesAPI static methods are as follows :

  • MovesAPI.authenticate(...);
  • MovesAPI.getAuthData();
  • MovesAPI.getProfile(...);
  • MovesAPI.getSummary_SingleDay(...);
  • MovesAPI.getSummary_SpecificWeek(...);
  • MovesAPI.getSummary_SpecificMonth(...);
  • MovesAPI.getSummary_WithinRange(...);
  • MovesAPI.getSummary_PastDays(...);

You will get notified with success and failure responses at :

private MovesHandler<<MovesData>> authDialogHandler = new MovesHandler<<MovesData>>() {
    @Override
    public void onSuccess(<MovesData> result) {

    }

    @Override
    public void onFailure(MovesStatus status, String message) {

    }
};

Disclaimer

This API library project is using data from Moves API but this project is not endorsed by Moves. Moves is a trademark of ProtoGeo Oy.

Copyright and License

This library project is licenced under The MIT License (MIT)

Copyright (c) 2014 Midhu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Contact

Please feel free to use this library, and give your feedbacks to improve it. You can reach me at midhunarmid@gmail.com

--- Midhu



Read more about Moves Android API Library Project