Package weibo4j

Examples of weibo4j.Weibo$Device


  /**
   * @param args
   */
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    boolean result = false;
    String ids = args[1];
    Favorite fm = new Favorite();
    try {
      result = fm.destroyFavoritesTagsBatch(ids);
View Full Code Here


public class GetTrendsHourly {

  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.getTrendsHourly();
      for(Trends ts : trends){
View Full Code Here

import weibo4j.org.json.JSONObject;

public class GetUid {

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

public class GetCommentMentions {

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

public class GetFollowsActive {

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

import weibo4j.model.WeiboException;

public class GetAccountPrpfileSchoolList {

  public static void main(String[] args) {
    Weibo weibo = new Weibo();
    String access_token = args[0];// 输入授权后的AccessToken
    weibo.setToken(access_token);
    Account am = new Account();
    try {
      List<School> schools = am.getAccountPrpfileSchoolList();
      for (School school : schools) {
        Log.logInfo(school.toString());
View Full Code Here

public class GetFavoritesIds {

  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 {
      JSONObject ids = fm.getFavoritesIds();
      Log.logInfo(ids.toString());
    } catch (WeiboException e) {
View Full Code Here

public class UpdateFavoritesTagsBatch {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Favorite fm = new Favorite();
    String tid = args[1];
    String tag= args[2];
    try {
      JSONObject json = fm.updateFavoritesTagsBatch(tid, tag);
View Full Code Here

public class GetFriendsBilateral {

  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()){
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);
    String comments = args[1];
    String id = args[2];
    String cid = args[3];
    Comments cm = new Comments();
    try {
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.