public class GetFavoritesByTags {
public static void main(String[] args) {
String access_token = args[0];
Favorite fm = new Favorite();
fm.client.setToken(access_token);
String tid = args[1];
try {
List<Favorites> favors = fm.getFavoritesByTags(tid);
for (Favorites s : favors) {
Log.logInfo(s.toString());
}
} catch (WeiboException e) {
e.printStackTrace();