Examples of PostParameter


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

Examples of twitter4j.http.PostParameter

     * @return the response
     * @throws TwitterException when Twitter service or network is unavailable
     */

    protected Response get(String url, String name1, String value1, boolean authenticate) throws TwitterException {
        return get(url, new PostParameter[]{new PostParameter(name1, value1)}, authenticate);
    }
View Full Code Here

Examples of weibo4j.http.PostParameter

     * @return the response
     * @throws WeiboException when Weibo service or network is unavailable
     */

    protected Response get(String url, String name1, String value1, boolean authenticate) throws WeiboException {
        return get(url, new PostParameter[]{new PostParameter(name1, value1)}, authenticate);
    }
View Full Code Here

Examples of weibo4j.model.PostParameter

   * @since JDK 1.5
   */
  public UserWapper getFriendsByID(String id) throws WeiboException {
    return User.constructWapperUsers(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "friendships/friends.json",
        new PostParameter[] { new PostParameter("uid", id) }));
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

   */
  public UserWapper getFriendsByScreenName(String screen_name)
      throws WeiboException {
    return User.constructWapperUsers(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "friendships/friends.json",
        new PostParameter[] { new PostParameter("screen_name",
            screen_name) }));
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

   */
  public UserWapper getFriendsInCommon(String uid) throws WeiboException {
    return User.constructWapperUsers(Weibo.client.get(
        WeiboConfig.getValue("baseURL")
            + "friendships/friends/in_common.json",
        new PostParameter[] { new PostParameter("uid", uid) }));
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

  public UserWapper getFriendsInCommon(String uid, String suid, Paging page)
      throws WeiboException {
    return User.constructWapperUsers(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "friendships/friends/in_common.json",
        new PostParameter[] {
          new PostParameter("uid", uid),
          new PostParameter("suid", suid)}, page));
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

   */
  public UserWapper getFriendsBilateral(String uid) throws WeiboException {
    return User.constructWapperUsers(Weibo.client.get(
        WeiboConfig.getValue("baseURL")
            + "friendships/friends/bilateral.json",
        new PostParameter[] { new PostParameter("uid", uid) }));
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

  public  UserWapper getFriendsBilateral(String uid, Integer sort, Paging page)
      throws WeiboException {
    return User.constructWapperUsers(Weibo.client.get(
        WeiboConfig.getValue("baseURL")
            + "friendships/friends/bilateral.json",
        new PostParameter[] { new PostParameter("uid", uid),
            new PostParameter("sort", sort.toString()) }, page));
  }
View Full Code Here

Examples of weibo4j.model.PostParameter

   */
  public String[] getFriendsBilateralIds(String uid) throws WeiboException {
    return User.constructIds(Weibo.client.get(
        WeiboConfig.getValue("baseURL")
            + "friendships/friends/bilateral/ids.json",
        new PostParameter[] { new PostParameter("uid", uid) }));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.