Package weibo4j

Examples of weibo4j.Users


  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String uids =  args[1];
    Users um = new Users();
    try {
      JSONArray user = um.getUserCount(uids);
      Log.logInfo(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here


  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String uid =  args[1];
    Users um = new Users();
    try {
      User user = um.showUserById(uid);
      Log.logInfo(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String domain  = args[1];
    Users um = new Users();
    try {
      User user = um.showUserByDomain(domain);
      Log.logInfo(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

public class ShowUser {

  public static void main(String[] args) {
    String access_token = args[0];
    String uid = args[1];
    Users um = new Users();
    um.client.setToken(access_token);
    try {
      User user = um.showUserById(uid);
      Log.logInfo(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

public class showUserByDomain {

  public static void main(String[] args) {
    String access_token = args[0];
    String domain = args[1];
    Users um = new Users();
    um.client.setToken(access_token);
    try {
      User user = um.showUserByDomain(domain);
      Log.logInfo(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

public class UserCount {

  public static void main(String[] args) {
    String access_token = args[0];
    String uids = args[1];
    Users um = new Users();
    um.client.setToken(access_token);
    try {
      JSONArray user = um.getUserCount(uids);
      Log.logInfo(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of weibo4j.Users

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.