Package weibo4j

Examples of weibo4j.Tags


  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));
    } catch (WeiboException e) {

      e.printStackTrace();
    }
View Full Code Here


  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());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

  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);
      System.out.println(tags.toString());
    } catch (WeiboException e) {
      e.printStackTrace();
    }
View Full Code Here

  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){       
        Log.logInfo(tag.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

  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);
      for(Tag t : tags){
        Log.logInfo(t.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

  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);
      for(Tag tag:tags ){       
        Log.logInfo(tag.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

public class DestroyTagsBatch {

  public static void main(String[] args) {
    String access_token = args[0];
    Tags tm = new Tags();
    tm.client.setToken(access_token);
    String ids = args[1];
    List<Tag> tags = null;
    try {
      tags = tm.destroyTagsBatch(ids);
      for (Tag t : tags) {
        Log.logInfo(t.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

public class GetTags {

  public static void main(String[] args) {
    String access_token = args[0];
    Tags tm = new Tags();
    tm.client.setToken(access_token);
    List<Tag> tags = null;
    String uid = args[1];
    try {
      tags = tm.getTags(uid);
      for (Tag tag : tags) {
        Log.logInfo(tag.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
View Full Code Here

public class DestroyTag {

  public static void main(String[] args) {
    String access_token = args[0];
    Tags tm = new Tags();
    tm.client.setToken(access_token);
    int tag_id = Integer.parseInt(args[1]);
    try {
      JSONObject result = tm.destoryTag(tag_id);
      Log.logInfo(String.valueOf(result));
    } catch (WeiboException e) {

      e.printStackTrace();
    }
View Full Code Here

public class CreateTags {

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

TOP

Related Classes of weibo4j.Tags

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.