Package weibo4j.model

Examples of weibo4j.model.Status


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


   *      href="http://open.weibo.com/wiki/2/statuses/update">statuses/update</a>
   * @since JDK 1.5
   */
  public Status UpdateStatus(String status, Float lat, Float longs, String annotations)
      throws WeiboException {
    return new Status(client.post(WeiboConfig.getValue("baseURL") + "statuses/update.json",
        new PostParameter[] {new PostParameter("status", status),
            new PostParameter("lat", lat.toString()), new PostParameter("long", longs.toString()),
            new PostParameter("annotations", annotations)}));
  }
View Full Code Here

   * @see <a
   *      href="http://open.weibo.com/wiki/2/statuses/upload">statuses/upload</a>
   * @since JDK 1.5
   */
  public Status UploadStatus(String status, ImageItem item) throws WeiboException {
    return new Status(client.multPartURL(WeiboConfig.getValue("baseURL") + "statuses/upload.json",
        new PostParameter[] {new PostParameter("status", status)}, item));
  }
View Full Code Here

    String access_token = args[0];
    String statuses = args[1];
    Timeline tm = new Timeline();
    tm.client.setToken(access_token);
    try {
      Status status = tm.UpdateStatus(statuses);
      Log.logInfo(status.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }  }
View Full Code Here

TOP

Related Classes of weibo4j.model.Status

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.