Beispiel #1
0
 /**
  * 获取当前登录用户的收藏列表
  *
  * @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
  * @since JDK 1.5
  */
 public List<Favorites> getFavorites(Map<String, String> map) throws WeiboException {
   PostParameter[] parList = ArrayUtils.mapToArray(map);
   return Favorites.constructFavorites(
       client.get(WeiboConfig.getValue("baseURL") + "favorites.json", parList, access_token));
 }
Beispiel #2
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/ids
  * @since JDK 1.5
  */
 public JSONObject getFavoritesIds(Map<String, String> map) throws WeiboException {
   PostParameter[] parList = ArrayUtils.mapToArray(map);
   return client
       .get(WeiboConfig.getValue("baseURL") + "favorites/ids.json", parList, access_token)
       .asJSONObject();
 }