Package weibo4j.examples.account

Source Code of weibo4j.examples.account.GetAccountRateLimitStatus

package weibo4j.examples.account;

import weibo4j.Account;
import weibo4j.Weibo;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.RateLimitStatus;
import weibo4j.model.WeiboException;

public class GetAccountRateLimitStatus {

  /**
   * @param args
   */
  public static void main(String[] args) {
    Weibo weibo = new Weibo();
    String access_token = args[0];
    weibo.setToken(access_token);
    Account am = new Account();
    try {
            RateLimitStatus json = am.getAccountRateLimitStatus();
      Log.logInfo(json.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }

}
TOP

Related Classes of weibo4j.examples.account.GetAccountRateLimitStatus

TOP
Copyright © 2018 www.massapi.com. 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.