Package weibo4j

Examples of weibo4j.Weibo$Device


public class GetMentions {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      StatusWapper status = tm.getMentions();
      for(Status s : status.getStatuses()){
        Log.logInfo(s.toString());
View Full Code Here


import weibo4j.org.json.JSONArray;

public class GetCommentsDaily {
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      JSONArray status = tm.getCommentsDaily();
      Log.logInfo(status.toString());
View Full Code Here

  /**
   * @param args
   */
  public static void main(String[] args) {
    String access_token = "2.00RQs9XCjP8_PC27953e0bc62cwKCE";
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    String id = "3406785442845028";
    try {
      Favorites favors =fm.destroyFavorites(id);
      Log.logInfo(favors.toString());
View Full Code Here

import weibo4j.model.WeiboException;

public class SuggestionsStatusesHot {

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

public class GetRemark {

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

import weibo4j.model.WeiboException;

public class SuggestionsUsersHot {

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

public class GetFollowersById {

  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()){
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();
    boolean result = false;
    String ids = args[1];
    try {
      result = fm.destroyFavoritesTagsBatch(ids);
View Full Code Here

import weibo4j.model.WeiboException;

public class SuggestionsFavoritesHot {

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

  /**
   * @param args
   */
  public static void main(String[] args) {
    String access_token = "2.00RQs9XCjP8_PC27953e0bc62cwKCE";
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String id = "3406785442845028";
    Favorite fm = new Favorite();
    try {
      Favorites favors = fm.createFavorites(id);
      Log.logInfo(favors.toString());
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.