Package weibo4j

Examples of weibo4j.Friendships


public class GetFriendsBilateralIds {

  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.getFriendsBilateralIds(uid);
      for (String s : ids) {
        Log.logInfo(s);
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here


public class GetFollowsActive {

  public static void main(String[] args) {
    String access_token = "2.00RQs9XC0gdCQY15dd6eda18QiojdE";
    String uid = "2326766521";
    Friendships fm = new Friendships();
    fm.client.setToken(access_token);
    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 class GetFriendsBilateral {

  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.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 class GetFriendsByID {

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

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

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

  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.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 class DestroyFriendshipsDestroyById {

  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 fv = fm.destroyFriendshipsDestroyById(uid);
      Log.logInfo(fv.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

public class GetFollowersIds {

  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.getFollowersIdsById(uid);
      for (String u : ids) {
        Log.logInfo(u.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

public class GetFriendsIdsByName {

  public static void main(String[] args) {
    String access_token = args[0];
    String screenName = args[1];
    Friendships fm = new Friendships();
    fm.client.setToken(access_token);
    try {
      String[] ids = fm.getFriendsIdsByName(screenName);
      for (String s : ids) {
        Log.logInfo(s);
      }
    } catch (WeiboException e) {
      e.printStackTrace();
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.