Package weibo4j.model

Examples of weibo4j.model.User


   * @see <a
   *      href="http://open.weibo.com/wiki/2/users/domain_show">users/domain_show</a>
   * @since JDK 1.5
   */
  public User showUserByDomain(String domain) throws WeiboException {
    return new User(client.get(WeiboConfig.getValue("baseURL") + "users/domain_show.json",
        new PostParameter[] {new PostParameter("domain", domain)}).asJSONObject());
  }
View Full Code Here


    String access_token = args[0];
    String uid = args[1];
    Users um = new Users();
    um.client.setToken(access_token);
    try {
      User user = um.showUserById(uid);
      Log.logInfo(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    String access_token = args[0];
    String domain = args[1];
    Users um = new Users();
    um.client.setToken(access_token);
    try {
      User user = um.showUserByDomain(domain);
      Log.logInfo(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

   * 获取在某个地点点评的列表
   *
   * 注:没写完
   */
  public User poisTipsList(String poiid) throws WeiboException {
    return new User(client.get(WeiboConfig.getValue("baseURL") + "place/pois/tips.json",
        new PostParameter[] {new PostParameter("poiid", poiid)}).asJSONObject());
  }
View Full Code Here

   * @see <a
   *      href="http://open.weibo.com/wiki/2/suggestions/users/not_interested">suggestions/users/not_interested</a>
   * @since JDK 1.5
   */
  public User suggestionsUsersNot_interested(String uid) throws WeiboException {
    return new User(client.post(
        WeiboConfig.getValue("baseURL") + "suggestions/users/not_interested.json",
        new PostParameter[] {new PostParameter("uid", uid)}).asJSONObject());
  }
View Full Code Here

//    System.out.println("当前用户的名字:" + user.getName());
//    System.out.println("当前用户所发的微博数:" + user.getStatusesCount());
//    System.out.println("当前用户关注数:" + user.getFriendsCount());
//    System.out.println("当前用户粉丝数:" + user.getFollowersCount());
    try {
      User user = userManager.showUserById(uid); // default 'User' class provided by the SDK
      this.uid = user.getId();
      this.name = user.getName();
      this.location = user.getLocation();
      this.numberofFriends = user.getFriendsCount();
      this.numberOfFollowers = user.getFollowersCount();
      this.numberOfStatuses = user.getStatusesCount();
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

   * @version weibo4j-V2 1.0.1
   * @see <a href="http://open.weibo.com/wiki/2/users/show">users/show</a>
   * @since JDK 1.5
   */
  public User showUserById(String uid) throws WeiboException {
    return new User(client.get(WeiboConfig.getValue("baseURL") + "users/show.json",
                                  new PostParameter[]{new PostParameter("uid", uid)}).asJSONObject());
  }
View Full Code Here

     * @version weibo4j-V2 1.0.1
     * @see <a href="http://open.weibo.com/wiki/2/users/show">users/show</a>
     * @since JDK 1.5
     */
    public User showUserById(String uid) throws WeiboException {
        return new User(client.get(WeiboConfig.getValue("baseURL") + "users/show.json",
                new PostParameter[]{new PostParameter("uid", uid)}).asJSONObject());
    }
View Full Code Here

     * @version weibo4j-V2 1.0.1
     * @see <a href="http://open.weibo.com/wiki/2/users/show">users/show</a>
     * @since JDK 1.5
     */
    public User showUserByScreenName(String screen_name) throws WeiboException {
        return new User(client.get(WeiboConfig.getValue("baseURL") + "users/show.json", new PostParameter[]{new PostParameter("screen_name", screen_name)}
        ).asJSONObject());
    }
View Full Code Here

     * @version weibo4j-V2 1.0.1
     * @see <a href="http://open.weibo.com/wiki/2/users/domain_show">users/domain_show</a>
     * @since JDK 1.5
     */
    public User showUserByDomain(String domain) throws WeiboException {
        return new User(client.get(WeiboConfig.getValue("baseURL") + "users/domain_show.json", new PostParameter[]{new PostParameter("domain", domain)}).asJSONObject());
    }
View Full Code Here

TOP

Related Classes of weibo4j.model.User

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.