Package com.fitbit.api.common.model.achievement

Examples of com.fitbit.api.common.model.achievement.LifetimeAchievements


        // Example: GET /1/user/228TQ4/activities.json
        String url = APIUtil.contextualizeUrl(getApiBaseUrl(), getApiVersion(), "/user/" + fitbitUser.getId() + "/activities", APIFormat.JSON);
        Response res = httpGet(url, true);
        throwExceptionIfError(res);
        try {
            return new LifetimeAchievements(res.asJSONObject().getJSONObject("lifetime"));
        } catch (JSONException e) {
            throw new FitbitAPIException("Error parsing lifetime achievements: " + e, e);
        }
    }
View Full Code Here

TOP

Related Classes of com.fitbit.api.common.model.achievement.LifetimeAchievements

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.