Package weibo4j

Examples of weibo4j.PublicService


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

View Full Code Here


  /**
   * @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();
    }

View Full Code Here

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

View Full Code Here

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

View Full Code Here

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

View Full Code Here

TOP

Related Classes of weibo4j.PublicService

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.