use of org.qii.weiciyuan.bean.UserListBean in project weiciyuan by qii.
the class SearchDao method getUserList.
public UserListBean getUserList() throws WeiboException {
String url = URLHelper.USERS_SEARCH;
Map<String, String> map = new HashMap<String, String>();
map.put("access_token", access_token);
map.put("count", count);
map.put("page", page);
map.put("q", q);
String jsonData = null;
jsonData = HttpUtility.getInstance().executeNormalTask(HttpMethod.Get, url, map);
Gson gson = new Gson();
UserListBean value = null;
try {
value = gson.fromJson(jsonData, UserListBean.class);
} catch (JsonSyntaxException e) {
AppLogger.e(e.getMessage());
}
return value;
}
Aggregations