Package weibo4j.model

Examples of weibo4j.model.PostParameter


    return Weibo.client.get(WeiboConfig.getValue("baseURL")+"suggestions/users/hot.json").asJSONArray();
  }
 
  public JSONArray suggestionsUsersHot(String category) throws WeiboException{
    return Weibo.client.get(WeiboConfig.getValue("baseURL")+"suggestions/users/hot.json",new PostParameter[]{
      new PostParameter("category", category)
    }).asJSONArray();
  }
View Full Code Here


  public JSONArray suggestionsUsersMayInterested() throws WeiboException{
    return Weibo.client.get(WeiboConfig.getValue("baseURL")+"suggestions/users/may_interested.json").asJSONArray();
  }
  public JSONArray suggestionsUsersMayInterested(int count,int page) throws WeiboException{
    return Weibo.client.get(WeiboConfig.getValue("baseURL")+"suggestions/users/may_interested.json",new PostParameter[]{
      new PostParameter("count", count),
      new PostParameter("page", page)
    }).asJSONArray();
  }
View Full Code Here

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

      new PostParameter("content", content)
    }));
  }
  public UserWapper suggestionsUsersByStatus(String content,int num) throws WeiboException{
    return User.constructWapperUsers(Weibo.client.get(WeiboConfig.getValue("baseURL")+"suggestions/users/by_status.json",new PostParameter[]{
      new PostParameter("content", content),
      new PostParameter("num", num)
    }));
  }
View Full Code Here

   *      href="http://open.weibo.com/wiki/2/suggestions/statuses/hot">suggestions/statuses/hot</a>
   * @since JDK 1.5
   */
  public StatusWapper suggestionsStatusesHot(int type,int isPic) throws WeiboException{
    return Status.constructWapperStatus(Weibo.client.get(WeiboConfig.getValue("baseURL")+"suggestions/statuses/hot.json",new PostParameter[]{
      new PostParameter("type", type),
      new PostParameter("is_pic", isPic)
    }));
  }
View Full Code Here

      new PostParameter("is_pic", isPic)
    }));
  }
  public StatusWapper suggestionsStatusesHot(int type,int isPic,Paging page) throws WeiboException{
    return Status.constructWapperStatus(Weibo.client.get(WeiboConfig.getValue("baseURL")+"suggestions/statuses/hot.json",new PostParameter[]{
      new PostParameter("type", type),
      new PostParameter("is_pic", isPic)
    },page));
  }
View Full Code Here

  public JSONArray suggestionsFavoritesHot() throws WeiboException{
    return Weibo.client.get(WeiboConfig.getValue("baseURL")+"suggestions/favorites/hot.json").asJSONArray();
  }
  public JSONArray suggestionsFavoritesHot(int page,int count) throws WeiboException{
    return Weibo.client.get(WeiboConfig.getValue("baseURL")+"suggestions/favorites/hot.json",new PostParameter[]{
      new PostParameter("page", page),
      new PostParameter("count", count)
    }).asJSONArray();
  }
View Full Code Here

   *      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

  public AccessToken getAccessTokenByCode(String code) throws WeiboException {
    return new AccessToken(Weibo.client.post(
        WeiboConfig.getValue("accessTokenURL"),
        new PostParameter[] {
            new PostParameter("client_id", WeiboConfig
                .getValue("client_ID")),
            new PostParameter("client_secret", WeiboConfig
                .getValue("client_SERCRET")),
            new PostParameter("grant_type", "authorization_code"),
            new PostParameter("code", code),
            new PostParameter("redirect_uri", WeiboConfig
                .getValue("redirect_URI")) }, false));
  }
View Full Code Here

      String keyword, Integer count) throws WeiboException {
    return School.constructSchool(Weibo.client.get(
        WeiboConfig.getValue("baseURL")
            + "account/profile/school_list.json",
        new PostParameter[] {
            new PostParameter("province", province.toString()),
            new PostParameter("city", city.toString()),
            new PostParameter("area", area.toString()),
            new PostParameter("type", type.toString()),
            new PostParameter("capital", capital),
            new PostParameter("keyword", keyword),
            new PostParameter("count", count.toString()) }));
  }
View Full Code Here

TOP

Related Classes of weibo4j.model.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.