Examples of DoubanUserFeedObj


Examples of com.dongxuexidu.douban4j.model.user.DoubanUserFeedObj

      params.add(new BasicNameValuePair("start-index", startIndex.toString()));
    }
    if (maxResultCount != null) {
      params.add(new BasicNameValuePair("max-results", maxResultCount.toString()));
    }
    DoubanUserFeedObj result = this.client.getResponse(RequestUrls.DOUBAN_USER_PREFIX, params, DoubanUserFeedObj.class, false);
    return result;
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.user.DoubanUserFeedObj

    }
    if (maxResultCount != null) {
      params.add(new BasicNameValuePair("max-results", maxResultCount.toString()));
    }
    String url = RequestUrls.DOUBAN_USER_PREFIX + "/" + uid + "/friends";
    DoubanUserFeedObj result = this.client.getResponse(url, params, DoubanUserFeedObj.class, true);
    return result;
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.user.DoubanUserFeedObj

    }
    if (maxResultCount != null) {
      params.add(new BasicNameValuePair("max-results", maxResultCount.toString()));
    }
    String url = RequestUrls.DOUBAN_USER_PREFIX + "/" + uid + "/contacts";
    DoubanUserFeedObj result = this.client.getResponse(url, params, DoubanUserFeedObj.class, false);
    return result;
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.user.DoubanUserFeedObj

   */
  public void testSearchUserProfile_String() throws Exception {
    System.out.println("searchUserProfile");
    String keyword = "xxx";
    DoubanUserService instance = new DoubanUserService();
    DoubanUserFeedObj result = instance.searchUserProfile(keyword);
    assertTrue(result.getUsers().size() > 0);
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.user.DoubanUserFeedObj

    System.out.println("searchUserProfile");
    String keyword = "douban";
    Integer startIndex = 0;
    Integer maxResultCount = 2;
    DoubanUserService instance = new DoubanUserService();
    DoubanUserFeedObj result = instance.searchUserProfile(keyword, startIndex, maxResultCount);
    //System.out.println("size : " + result.getUsers().size());
    assertTrue(result.getUsers().size() == 3); // This is the problem of their API, no my problem
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.user.DoubanUserFeedObj

    String uid = "xxx";
    if (accessToken == null) {
      accessToken = PlayGround.testAccessToken();
    }
    DoubanUserService instance = new DoubanUserService();
    DoubanUserFeedObj result = instance.getUsersFriendsList(uid, accessToken);
    assertTrue(result.getUsers().size() > 0);
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.user.DoubanUserFeedObj

    Integer maxResultCount = 2;
    if (accessToken == null) {
      accessToken = PlayGround.testAccessToken();
    }
    DoubanUserService instance = new DoubanUserService();
    DoubanUserFeedObj result = instance.getUsersFriendsList(uid, startIndex, maxResultCount, accessToken);
    assertTrue(result.getUsers().size() == 2);
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.user.DoubanUserFeedObj

   */
  public void testGetUsersContactsList_String() throws Exception {
    System.out.println("getUsersContactsList");
    String uid = "xxx";
    DoubanUserService instance = new DoubanUserService();
    DoubanUserFeedObj result = instance.getUsersContactsList(uid);
    assertTrue(result.getUsers().size() > 0);
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.user.DoubanUserFeedObj

    System.out.println("getUsersContactsList");
    String uid = "xxx";
    Integer startIndex = 0;
    Integer maxResultCount = 2;
    DoubanUserService instance = new DoubanUserService();
    DoubanUserFeedObj result = instance.getUsersContactsList(uid, startIndex, maxResultCount);
    assertTrue(result.getUsers().size() == 2);
  }
View Full Code Here

Examples of com.dongxuexidu.douban4j.model.user.DoubanUserFeedObj

    return result;
  }

  public DoubanUserFeedObj getParticipantsByEventId(long eventId) throws DoubanException, IOException {
    String url = RequestUrls.DOUBAN_EVENT_PREFIX + "/" + eventId + "/participants";
    DoubanUserFeedObj result = this.client.getResponse(url, null, DoubanUserFeedObj.class, false);
    return result;
  }
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.