示例#1
0
 /** @param args */
 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();
   }
 }
示例#2
0
 @Test
 public void testShowTags() {
   String access_token =
       "2.00d5evFEnhnsoBc45cd025fencuzbE"; // get token code from <code>OAuth4Code.java</code>
   String uid = "2552134982";
   Tags tm = new Tags();
   tm.client.setToken(access_token);
   try {
     List<Tag> wbTags = tm.getTags(uid);
     for (Tag tag : wbTags) {
       Log.logInfo(tag.toString());
     }
   } catch (WeiboException e) {
     e.printStackTrace();
   }
 }