本文整理匯總了Java中weibo4j.model.FavoritesTag類的典型用法代碼示例。如果您正苦於以下問題:Java FavoritesTag類的具體用法?Java FavoritesTag怎麽用?Java FavoritesTag使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
FavoritesTag類屬於weibo4j.model包,在下文中一共展示了FavoritesTag類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: main
import weibo4j.model.FavoritesTag; //導入依賴的package包/類
public static void main(String[] args) {
String access_token = args[0];
Favorite fm = new Favorite(access_token);
try {
List<FavoritesTag> favors = fm.getFavoritesTags();
for(FavoritesTag s : favors){
Log.logInfo(s.toString());
}
} catch (WeiboException e) {
e.printStackTrace();
}
}
示例2: main
import weibo4j.model.FavoritesTag; //導入依賴的package包/類
public static void main(String[] args) {
String access_token = args[0];
Favorite fm = new Favorite(access_token);
try {
List<FavoritesTag> favors = fm.getFavoritesTags();
for (FavoritesTag s : favors) {
Log.logInfo(s.toString());
}
}
catch (WeiboException e) {
e.printStackTrace();
}
}
示例3: main
import weibo4j.model.FavoritesTag; //導入依賴的package包/類
public static void main(String[] args) {
String access_token = args[0];
Favorite fm = new Favorite();
fm.client.setToken(access_token);
try {
List<FavoritesTag> favors = fm.getFavoritesTags();
for(FavoritesTag s : favors){
Log.logInfo(s.toString());
}
} catch (WeiboException e) {
e.printStackTrace();
}
}
示例4: getFavoritesTags
import weibo4j.model.FavoritesTag; //導入依賴的package包/類
/**
* 獲取當前登錄用戶的收藏標簽列表
*
* @param map
* 參數列表
* @return
* @throws WeiboException
* when Weibo service or network is unavailable
* @version weibo4j-V2 1.0.2
* @see http://open.weibo.com/wiki/2/favorites/tags
* @since JDK 1.5
*/
public List<FavoritesTag> getFavoritesTags(Map<String, String> map)
throws WeiboException {
PostParameter[] parList = ArrayUtils.mapToArray(map);
return Tag.constructTag(client.get(WeiboConfig.getValue("baseURL")
+ "favorites/tags.json", parList, access_token));
}
示例5: getFavoritesTags
import weibo4j.model.FavoritesTag; //導入依賴的package包/類
/**
* 獲取當前登錄用戶的收藏標簽列表
*
* @param page
* @return list of the favorite tags
* @throws WeiboException
* when Weibo service or network is unavailable
* @version weibo4j-V2 1.0.1
* @see <a
* href="http://open.weibo.com/wiki/2/favorites/tags">favorites/tags</a>
* @since JDK 1.5
*/
public List<FavoritesTag> getFavoritesTags() throws WeiboException {
return Tag.constructTag(client.get(WeiboConfig
.getValue("baseURL") + "favorites/tags.json"));
}