Package weibo4j.examples.publicservice

Source Code of weibo4j.examples.publicservice.GetTimeZone

package weibo4j.examples.publicservice;

import org.json.JSONObject;

import weibo4j.PublicService;
import weibo4j.model.WeiboException;

public class GetTimeZone {

  /**
   * @param args
   */
  public static void main(String[] args) {
    String access_token = args[0];
    PublicService ps = new PublicService();
    ps.client.setToken(access_token);
    try {
      JSONObject jo = ps.getTomeZone();
      System.out.println(jo.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }

  }

}
TOP

Related Classes of weibo4j.examples.publicservice.GetTimeZone

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.