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 uid = args[1];
    Friendships fm = new Friendships();
    try {
      String[] ids = fm.getFriendsBilateralIds(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 {
      UserWapper users = fm.getFollowersActive(uid);
      for(User u : users.getUsers()){
        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 uid = args[1];
    Friendships fm = new Friendships();
    try {
      UserWapper users = fm.getFriendsBilateral(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 id = args[1];
    Friendships fm = new Friendships();
    try {
      UserWapper users = fm.getFriendsByID(id);
      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);
    Friendships fm = new Friendships();
    String screen_name =args[1];
    try {
      UserWapper users = fm.getFollowersByName(screen_name);
      for(User u : users.getUsers()){
        Log.logInfo(u.toString());
      }
      System.out.println(users.getNextCursor());
      System.out.println(users.getPreviousCursor());
View Full Code Here

public class GetRemark {

  public static void main(String[] args) {
    String access_token = args[0];
    String uids = args[1];
    Friendships fm = new Friendships();
    fm.client.setToken(access_token);
    try {
      JSONArray user = fm.getRemark(uids);
      System.out.println(user.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
View Full Code Here

public class GetFollowersById {

  public static void main(String[] args) {
    String access_token = args[0];
    String uid = args[1];
    Friendships fm = new Friendships();
    fm.client.setToken(access_token);
    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 class GetFriendsIds {

  public static void main(String[] args) {
    String access_token = args[0];
    String uid = args[1];
    Friendships fm = new Friendships();
    fm.client.setToken(access_token);
    try {
      String[] ids = fm.getFriendsIdsByUid(uid);
      for (String s : ids) {
        Log.logInfo(s);
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

public class CreateFriendships {

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

public class GetFriendsChainFollowers {

  public static void main(String[] args) {
    String access_token = args[0];
    String uid = args[1];
    Friendships fm = new Friendships();
    fm.client.setToken(access_token);
    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.