| | |
| | | public static ListResultDTO getShowListByCategory(String category, int page, int pageSize) { |
| | | |
| | | try { |
| | | String url = String.format("https://openapi.youku.com/v2/shows/by_category.json?client_id=%s&category=%s&page=%s&count=" + pageSize, APP_ID, URLEncoder.encode(category, "UTF-8"), page); |
| | | String url = String.format("https://openapi.youku.com/v2/shows/by_category.json?client_id=%s&paid=1&category=%s&page=%s&count=" + pageSize, APP_ID, URLEncoder.encode(category, "UTF-8"), page); |
| | | String result = HttpUtil.get(url); |
| | | net.sf.json.JSONObject resultJson = net.sf.json.JSONObject.fromObject(result); |
| | | int total = resultJson.optInt("total"); |
| | |
| | | } |
| | | |
| | | return null; |
| | | |
| | | } |
| | | |
| | | public static ListResultDTO getVideoList(String showId, int page, int pageSize) { |