Package weibo4j.model

Examples of weibo4j.model.Comment


    String comments = args[1];
    String id = args[2];
    Comments cm = new Comments();
    cm.client.setToken(access_token);
    try {
      Comment comment = cm.createComment(comments, id);
      Log.logInfo(comment.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here


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

   *      href="http://open.weibo.com/wiki/2/comments/create">comments/create</a>
   * @since JDK 1.5
   */
  public Comment createComment(String comment, String id, Integer comment_ori)
      throws WeiboException {
    return new Comment(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

   * @see <a
   *      href="http://open.weibo.com/wiki/2/comments/reply">comments/reply</a>
   * @since JDK 1.5
   */
  public Comment replyComment(String cid, String id, String comment) throws WeiboException {
    return new Comment(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

   *      href="http://open.weibo.com/wiki/2/comments/reply">comments/reply</a>
   * @since JDK 1.5
   */
  public Comment replyComment(String cid, String id, String comment, Integer without_mention,
      Integer comment_ori) throws WeiboException {
    return new Comment(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

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

TOP

Related Classes of weibo4j.model.Comment

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.