Package weibo4j.model

Examples of weibo4j.model.PostParameter


   */
  public CommentWapper getCommentByMe(Paging page, Integer filter_by_source)
      throws WeiboException {
    return Comment.constructWapperComments(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "comments/by_me.json",
        new PostParameter[] { new PostParameter("filter_by_author",
            filter_by_source.toString()) }, page));
  }
View Full Code Here


  public CommentWapper getCommentToMe(Paging page, Integer filter_by_source,
      Integer filter_by_author) throws WeiboException {
    return Comment.constructWapperComments(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "comments/to_me.json",
        new PostParameter[] {
            new PostParameter("filter_by_source", filter_by_source
                .toString()),
            new PostParameter("filter_by_author", filter_by_author
                .toString()) }, page));
  }
View Full Code Here

      Integer filter_by_source, Integer filter_by_author)
      throws WeiboException {
    return Comment.constructWapperComments(Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "comments/mentions.json",
        new PostParameter[] {
            new PostParameter("filter_by_source", filter_by_source
                .toString()),
            new PostParameter("filter_by_author", filter_by_author
                .toString()) }, page));
  }
View Full Code Here

   * @since JDK 1.5
   */
  public JSONArray getCommentShowBatch(String cids) throws WeiboException {
    return Weibo.client.get(
        WeiboConfig.getValue("baseURL") + "comments/show_batch.json",
        new PostParameter[] { new PostParameter("cids", cids) }).asJSONArray();
  }
View Full Code Here

   */
  public Comment createComment(String comment, String id)
      throws WeiboException {
    return new Comment(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "comments/create.json", new PostParameter[] {
        new PostParameter("comment", comment),
        new PostParameter("id", id) }));
  }
View Full Code Here

   */
  public Comment createComment(String comment, String id, Integer comment_ori)
      throws WeiboException {
    return new Comment(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "comments/create.json", new PostParameter[] {
        new PostParameter("comment", comment),
        new PostParameter("id", id),
        new PostParameter("comment_ori", comment_ori.toString()) }));
  }
View Full Code Here

   */
  public Comment replyComment(String cid, String id, String comment)
      throws WeiboException {
    return new Comment(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "comments/reply.json", new PostParameter[] {
        new PostParameter("cid", cid),
        new PostParameter("id", id),
        new PostParameter("comment", comment) }));
  }
View Full Code Here

      Integer without_mention, Integer comment_ori) throws WeiboException {
    return new Comment(
        Weibo.client.post(
            WeiboConfig.getValue("baseURL") + "comments/reply.json",
            new PostParameter[] {
                new PostParameter("comment", comment),
                new PostParameter("id", id),
                new PostParameter("cid", cid),
                new PostParameter("without_mention",without_mention.toString()),
                new PostParameter("comment_ori", comment_ori.toString()) }));
  }
View Full Code Here

   * @since JDK 1.5
   */
  public Comment destroyComment(String cid) throws WeiboException {
    return new Comment(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "comments/destroy.json",
        new PostParameter[] { new PostParameter("cid", cid) }));
  }
View Full Code Here

   */
  public JSONArray destoryCommentBatch(String cids) throws WeiboException {
    return Weibo.client.post(
            WeiboConfig.getValue("baseURL")
                + "comments/destroy_batch.json",
            new PostParameter[] { new PostParameter("cids", cids) }).asJSONArray();
  }
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.