Package weibo4j

Examples of weibo4j.Weibo$Device


import weibo4j.org.json.JSONObject;

public class GetAccountPrivacy {

  public static void main(String[] args) {
    Weibo weibo = new Weibo();
    String access_token = args[0];
    weibo.setToken(access_token.toString());
    Account am = new Account();
    try {
            JSONObject json = am.getAccountPrivacy();
      Log.logInfo(json.toString());
    } catch (WeiboException e) {
View Full Code Here


public class GetFriendsChainFollowers {

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

  /**
   * @param args
   */
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    try {
      String tags=args[1];
      String id = args[2];
      Favorites favors = fm.updateFavoritesTags(id, tags);
View Full Code Here

public class GetTrendsWeekly {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Trend tm = new Trend();
    List<Trends> trends = null;
    try {
      trends = tm.getTrendsWeekly();
      for(Trends ts : trends){
View Full Code Here

public class GetCommentByMe {

  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.getCommentByMe();
      for(Comment c : comment.getComments()){
        Log.logInfo(c.toString());
View Full Code Here

  /**
   * @param args
   */
  public static void main(String[] args) {
    Weibo weibo = new Weibo();
    String access_token = args[0];
    weibo.setToken(access_token);
    Account am = new Account();
    try {
            RateLimitStatus json = am.getAccountRateLimitStatus();
      Log.logInfo(json.toString());
    } catch (WeiboException e) {
View Full Code Here

import weibo4j.model.WeiboException;

public class GetTrendsDaily {
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Trend tm = new Trend();
    List<Trends> trends = null;
    try {
      trends = tm.getTrendsDaily();
      for(Trends ts : trends){
View Full Code Here

public class ShowFavorite {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    String id = args[1];
    try {
      Favorites favors = fm.showFavorites(id);
      Log.logInfo(favors.toString());
View Full Code Here

public class TrendsFollow {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Trend tm = new Trend();
    String trend_name = args[1];
    try {
      UserTrend ut = tm.trendsFollow(trend_name);
      Log.logInfo(ut.toString());
View Full Code Here

public class GetFriendsBilateralIds {

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

TOP

Related Classes of weibo4j.Weibo$Device

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.