Package weibo4j.model

Examples of weibo4j.model.User


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


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

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

   *      href="http://open.weibo.com/wiki/2/friendships/destroy">friendships/destroy</a>
   * @since JDK 1.5
   */
  public User destroyFriendshipsDestroyByName(String screen_name)
      throws WeiboException {
    return new User(Weibo.client.post(
        WeiboConfig.getValue("baseURL") + "friendships/destroy.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/show">users/show</a>
   * @since JDK 1.5
   */
  public User showUserById(String uid) throws WeiboException {
    return new User(Weibo.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(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "users/show.json",
        new PostParameter[] { new PostParameter("screen_name",
            screen_name) }).asJSONObject());
  }
View Full Code Here

   * @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(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "users/domain_show.json",
        new PostParameter[] { new PostParameter("domain", domain) })
        .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(Weibo.client.post(WeiboConfig.getValue("baseURL")+"suggestions/users/not_interested.json",new PostParameter[]{
      new PostParameter("uid", uid)
    }).asJSONObject());
  }
View Full Code Here

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

    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String uid = args[1];
    Friendships fm = new Friendships();
    try {
      User fv =fm.destroyFriendshipsDestroyById(uid);
      Log.logInfo(fv.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
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.