Esempio n. 1
0
 /**
  * 获取当前用户某个标签下的收藏列表的ID
  *
  * @param tid 需要查询的标签ID
  * @return
  * @throws WeiboException when Weibo service or network is unavailable
  * @version weibo4j-V2 1.0.2
  * @see http://open.weibo.com/wiki/2/favorites/by_tags/ids
  * @since JDK 1.5
  */
 public List<FavoritesIds> getFavoritesIdsByTags(String tid) throws WeiboException {
   return FavoritesIds.constructFavoritesIds(
       client.get(
           WeiboConfig.getValue("baseURL") + "favorites/by_tags/ids.json",
           new PostParameter[] {new PostParameter("tid", tid)},
           access_token));
 }
Esempio n. 2
0
 /**
  * 获取当前登录用户的收藏列表ID
  *
  * @return list of the Status
  * @throws WeiboException when Weibo service or network is unavailable
  * @version weibo4j-V2 1.0.1
  * @see http://open.weibo.com/wiki/2/favorites
  * @since JDK 1.5
  */
 public List<FavoritesIds> getFavoritesIds() throws WeiboException {
   return FavoritesIds.constructFavoritesIds(
       client.get(WeiboConfig.getValue("baseURL") + "favorites/ids.json", access_token));
 }
Esempio n. 3
0
 /**
  * 获取当前用户某个标签下的收藏列表的ID
  *
  * @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/by_tags/ids
  * @since JDK 1.5
  */
 public List<FavoritesIds> getFavoritesIdsByTags(Map<String, String> map) throws WeiboException {
   PostParameter[] parList = ArrayUtils.mapToArray(map);
   return FavoritesIds.constructFavoritesIds(
       client.get(
           WeiboConfig.getValue("baseURL") + "favorites/by_tags/ids.json", parList, access_token));
 }