本文整理汇总了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"));
}