Package weibo4j

Examples of weibo4j.Weibo$Device


public class DestroyTag {

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


import weibo4j.model.WeiboException;

public class SearchSuggestionsApps {

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

public class GetFriendsByName {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String name = args[1];
    Friendships fm = new Friendships();
    try {
      UserWapper users = fm.getFriendsByScreenName(name);
      for(User u : users.getUsers()){
View Full Code Here

public class CreateTags {

  public static void main(String[] args){
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String tag = args[1];
    Tags tm  = new Tags();
    try {
      JSONArray tags = tm.createTags(tag);
      Log.logInfo(tags.toString());
View Full Code Here

public class GetCommentShowBatch {
 
  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 comment = cm.getCommentShowBatch(cids);
      Log.logInfo(comment.toString());
View Full Code Here

import weibo4j.model.WeiboException;

public class SearchSuggestionsAt_users {

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

public class UserCount {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String uids =  args[1];
    Users um = new Users();
    try {
      JSONArray user = um.getUserCount(uids);
      Log.logInfo(user.toString());
View Full Code Here

import weibo4j.model.WeiboException;

public class SearchSuggestionsStatuses {

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

public class GetTagsBatch {

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Tags tm = new Tags();
    TagWapper tags = null;
    String uids = args[1];
    try {;
      tags = tm.getTagsBatch(uids);
View Full Code Here

public class GetFriendsInCommon {

  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.getFriendsInCommon(uid);
      for(User u : users.getUsers()){
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.