package weibo4j.examples.tags;
import org.json.JSONArray;
import weibo4j.Tags;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.WeiboException;
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();
}
}
}