Package weibo4j

Examples of weibo4j.Weibo$Device


import weibo4j.model.WeiboException;

public class SearchSuggestionsSchools {

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


public class GetCommentById {

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

public class DestroyFriendshipsDestroyById {

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

public class GetTagsSuggestions {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Tags tm = new Tags();
    List<Tag> tags = null;
    try {
      tags = tm.getTagsSuggestions();
      for(Tag tag : tags){       
View Full Code Here

import weibo4j.model.WeiboException;

public class SearchSuggestionsCompanies {

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

public class DestroyCommentBatcn {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String cids = args[1];
    Comments cm = new Comments();
    try {
      JSONArray com = cm.destoryCommentBatch(cids);
      Log.logInfo(com.toString());
View Full Code Here

public class GetFollowersIds {

  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.getFollowersIdsById(uid);
      for(String u : ids){
View Full Code Here

public class GetCommentToMe {

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

public class GetFriendsIdsByName {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String screenName = args[1];
    Friendships fm = new Friendships();
    try {
      String[] ids = fm.getFriendsIdsByName(screenName);
      for(String s : ids){
View Full Code Here

import weibo4j.org.json.JSONArray;

public class GetRepostDaily {
  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.getRepostDaily();
      Log.logInfo(status.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.