Package com.fitbit.api.client.http

Examples of com.fitbit.api.client.http.PostParameter


        String weight = request.getParameter("weight");
        String timezone = request.getParameter("timezone");
        List<String> messages = new ArrayList<String>();
        try {
            List<PostParameter> parameters = new ArrayList<PostParameter>();
            parameters.add(new PostParameter("fullname", fullName));
            parameters.add(new PostParameter("nickname", nickname));
            parameters.add(new PostParameter("gender", gender));
            parameters.add(new PostParameter("birthday", dateOfBirth));
            parameters.add(new PostParameter("height", height));
            parameters.add(new PostParameter("weight", weight));
            parameters.add(new PostParameter("timezone", timezone));

            UserInfo userInfo = context.getApiClientService().getClient().updateUserInfo(context.getOurUser(), parameters);
            String message = "Profile is successfully updated";
            messages.add(message);
            log.info(message);
View Full Code Here

TOP

Related Classes of com.fitbit.api.client.http.PostParameter

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.