/** @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(); } }
@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(); } }