use of org.qii.weiciyuan.bean.GroupBean in project weiciyuan by qii.
the class CreateGroupDao method create.
public GroupBean create() throws WeiboException {
String url = URLHelper.GROUP_CREATE;
Map<String, String> map = new HashMap<String, String>();
map.put("access_token", access_token);
map.put("name", name);
String jsonData = HttpUtility.getInstance().executeNormalTask(HttpMethod.Post, url, map);
Gson gson = new Gson();
GroupBean value = null;
try {
value = gson.fromJson(jsonData, GroupBean.class);
} catch (JsonSyntaxException e) {
AppLogger.e(e.getMessage());
}
return value;
}
Aggregations