Package weibo4j

Examples of weibo4j.Weibo$Device


public class GetFavoritesByTags {

  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];
    try {
      List<Favorites> favors = fm.getFavoritesByTags(tid);
      for(Favorites s : favors){
View Full Code Here


public class GetFriendsByID {

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

public class DestroyComment {

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

public class ShowUser {

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

public class DestroyTagsBatch {

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

public class GetFollowers {

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

public class GetTags {

  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;
    String uid =args[1];
    try {
      tags = tm.getTags(uid);
View Full Code Here

public class CreateComment {

  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];
    Comments cm = new Comments();
    try {
      Comment comment = cm.createComment(comments, id);
View Full Code Here

public class showUserByDomain {

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

import weibo4j.model.WeiboException;

public class searchSuggestionsUsers {

  public static void main(String[] args) {
    Weibo weibo = new Weibo();
    weibo.setToken(args[0]);
    Search search = new Search();
    try {
      search.searchSuggestionsUsers(args[1]);
    } catch (WeiboException e) {
      e.printStackTrace();
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.