Package weibo4j

Examples of weibo4j.Friendships


  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String name = args[1];
    Friendships fm = new Friendships();
    try {
      UserWapper users = fm.getFriendsByScreenName(name);
      for(User u : users.getUsers()){
        System.out.println(u.toString());
      }
      System.out.println(users.getNextCursor());
      System.out.println(users.getPreviousCursor());
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];
    Friendships fm = new Friendships();
    try {
      UserWapper users = fm.getFriendsInCommon(uid);
      for(User u : users.getUsers()){
        Log.logInfo(u.toString());
      }
      System.out.println(users.getNextCursor());
      System.out.println(users.getPreviousCursor());
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];
    Friendships fm = new Friendships();
    try {
      User fv =fm.destroyFriendshipsDestroyById(uid);
      Log.logInfo(fv.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];
    Friendships fm = new Friendships();
    try {
      String[] ids = fm.getFollowersIdsById(uid);
      for(String u : ids){
        Log.logInfo(u.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 screenName = args[1];
    Friendships fm = new Friendships();
    try {
      String[] ids = fm.getFriendsIdsByName(screenName);
      for(String s : ids){
        Log.logInfo(s);
      }
    } 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 uids = args[1];
    Friendships fm = new Friendships();
    try {
      JSONArray user = fm.getRemark(uids);
      System.out.println(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];
    Friendships fm = new Friendships();
    try {
      UserWapper users = fm.getFollowersById(uid);
      for(User u : users.getUsers()){
        Log.logInfo(u.toString());
      }
      System.out.println(users.getNextCursor());
      System.out.println(users.getPreviousCursor());
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];
    Friendships fm = new Friendships();
    try {
      String[] ids = fm.getFriendsIdsByUid(uid);
      for(String s : ids){
        Log.logInfo(s);
      }
    } 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];
    Friendships fm = new Friendships();
    try {
      User user = fm.createFriendshipsById(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 uid = args[1];
    Friendships fm = new Friendships();
    try {
      UserWapper  users = fm.getFriendsChainFollowers(uid);
      for(User s : users.getUsers()){
        Log.logInfo(s.toString());
      }
      System.out.println(users.getNextCursor());
      System.out.println(users.getPreviousCursor());
View Full Code Here

TOP

Related Classes of weibo4j.Friendships

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.