Package weibo4j

Examples of weibo4j.Weibo


import weibo4j.model.WeiboException;

public class SuggestionsUsersNot_interested {

  public static void main(String[] args) {
    Weibo weibo = new Weibo();
    weibo.setToken(args[0]);
    Suggestion suggestion = new Suggestion();
    try {
      suggestion.suggestionsUsersNot_interested(args[1]);
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here


public class IsFollow {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String trend_name = args[1];
    Trend tm = new Trend();
    try {
      JSONObject result = tm.isFollow(trend_name);
      Log.logInfo(String.valueOf(result));
View Full Code Here

public class GetFriendsIds {

  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){
View Full Code Here

import weibo4j.model.WeiboException;

public class SuggestionsUsersMayInterested {

  public static void main(String[] args) {
    Weibo weibo = new Weibo();
    weibo.setToken(args[0]);
    Suggestion suggestion = new Suggestion();
    try {
      suggestion.suggestionsUsersMayInterested();
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

public class GetFavoritesTags {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    try {
      List<FavoritesTag> favors = fm.getFavoritesTags();
      for(FavoritesTag s : favors){
        Log.logInfo(s.toString());
View Full Code Here

public class TrendDestroy {

  public static void main(String[] args){
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Trend tm = new Trend();
    int trendId = Integer.parseInt(args[1]);
    try {
      JSONObject result = tm.trendsDestroy(trendId);
      Log.logInfo(String.valueOf(result));
View Full Code Here

public class CreateFriendships {

  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());
View Full Code Here

public class GetCommentTimeline {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Comments cm = new Comments();
    try {
      CommentWapper comment = cm.getCommentTimeline();
      for(Comment c : comment.getComments()){
        Log.logInfo(c.toString());
View Full Code Here

public class GetFavorites {

  public static void main(String[] args) {
    String access_token = "2.00RQs9XCjP8_PC27953e0bc62cwKCE";
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    try {
      List<Favorites> favors = fm.getFavorites();
      for(Favorites s : favors){
        Log.logInfo(s.toString());
View Full Code Here

public class GetTrends {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String uid = args[1];
    Trend tm = new Trend();
    List<UserTrend> trends = null;
    try {
      trends = tm.getTrends(uid);
View Full Code Here

TOP

Related Classes of weibo4j.Weibo

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.