use of org.aisen.android.common.setting.Setting in project AisenWeiBo by wangdan.
the class SinaSDK method webGetHotTopicsHotStatus.
/**
* 热门话题的推荐推荐微博列表
*
* @param containerId
* @param sinceId
* @return
* @throws TaskException
*/
public StatusContents webGetHotTopicsHotStatus(String containerId, String sinceId) throws TaskException {
Params params = new Params();
params.addParameter("containerid", containerId);
if (!TextUtils.isEmpty(sinceId)) {
params.addParameter("since_id", sinceId);
}
Setting action = newSetting("webGetHotTopicsHotStatus", "container/getIndex", "热门话题热门微博");
action.getExtras().put(HTTP_UTILITY, newSettingExtra(HTTP_UTILITY, TimelineHotTopicsHttpUtility.class.getName(), ""));
HttpConfig config = webConfig();
config.addHeader("Referer", String.format("http://m.weibo.cn/p/index?containerid=%s", containerId));
try {
return doGet(config, action, params, StatusContents.class);
} catch (Exception e) {
if (e instanceof TaskException)
checkWebResult((TaskException) e);
throw e;
}
}
Aggregations