Package weibo4j.model

Examples of weibo4j.model.PostParameter


   */
  public List<UserTrend> getTrends(String uid) throws WeiboException {
    return UserTrend
        .constructTrendList(Weibo.client.get(
            WeiboConfig.getValue("baseURL") + "trends.json",
            new PostParameter[] { new PostParameter("uid", uid) }));
  }
View Full Code Here


  public List<UserTrend> getTrends(String uid, Paging page)
      throws WeiboException {
    return UserTrend
        .constructTrendList(Weibo.client.get(
            WeiboConfig.getValue("baseURL") + "trends.json",
            new PostParameter[] { new PostParameter("uid", uid) }, page));
  }
View Full Code Here

   * @since JDK 1.5
   */
  public JSONObject isFollow(String trend_name) throws WeiboException {
      return Weibo.client.get(WeiboConfig.getValue("baseURL")+ "trends/is_follow.json",
              new PostParameter[] {
        new PostParameter("trend_name", trend_name) }).asJSONObject();
  }
View Full Code Here

  }
 
  public List<Trends> getTrendsHourly(Integer base_app) throws WeiboException {
    return Trends.constructTrendsList(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "trends/hourly.json",
        new PostParameter[] { new PostParameter("base_app", base_app.toString()) }));
  }
View Full Code Here

  }
 
  public List<Trends> getTrendsDaily(Integer base_app) throws WeiboException {
    return Trends.constructTrendsList(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "trends/daily.json",
        new PostParameter[] { new PostParameter("base_app", base_app
            .toString()) }));
  }
View Full Code Here

  }
 
  public List<Trends> getTrendsWeekly(Integer base_app) throws WeiboException {
    return Trends.constructTrendsList(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "trends/weekly.json",
        new PostParameter[] { new PostParameter("base_app", base_app.toString()) }));
  }
View Full Code Here

   * @since JDK 1.5
   */
  public UserTrend trendsFollow(String trend_name) throws WeiboException {
    return new UserTrend(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "trends/follow.json",
        new PostParameter[] { new PostParameter("trend_name",
            trend_name) }));
  }
View Full Code Here

   * @since JDK 1.5
   */
  public JSONObject trendsDestroy(Integer trend_id) throws WeiboException {
      return Weibo.client.post(WeiboConfig.getValue("baseURL")
              + "trends/destroy.json",
              new PostParameter[] { new PostParameter("trend_id",trend_id.toString()) }).asJSONObject();
  }
View Full Code Here

   * @since JDK 1.5
   */
  public CommentWapper getCommentById(String id) throws WeiboException {
    return Comment.constructWapperComments(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "comments/show.json",
        new PostParameter[] { new PostParameter("id", id) }));
  }
View Full Code Here

  public CommentWapper getCommentById(String id, Paging page,
      Integer filter_by_author) throws WeiboException {
    return Comment.constructWapperComments(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "comments/show.json",
        new PostParameter[] {
            new PostParameter("id", id),
            new PostParameter("filter_by_author", filter_by_author.toString()) }, page));
  }
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.