ublic static void main(String[] args) {
System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
try {
Weibo weibo = new Weibo();
weibo.setToken(args[0],args[1]); Status status = weibo.updateStatus("夜深了,人睡了。");
System.out.println(status.getId() + " : "+ status.getText()+" "+status.getCreatedAt());
} catch (Exception e) {
e.printStackTrace();
}
}
}
System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
try {
Weibo weibo = new Weibo();
weibo.setToken(args[0],args[1]); Status status = weibo.updateStatus("夜深了,人睡了。");
System.out.println(status.getId() + " : "+ status.getText()+" "+status.getCreatedAt());
} catch (Exception e) {
e.printStackTrace();
}
}
}
否则就只能通过上下环境自己分析猜测功能了。Weibo类肯定是实现微博功能的类。Status里包含微博的各种状态。