params.put("client_id", this.apiKey);
params.put("client_secret", this.secretKey);
params.put("redirect_uri", DefaultConfigs.ACCESS_TOKEN_REDIRECT_URL);
params.put("grant_type", "authorization_code");
params.put("code", code);
String responseStr = new HttpManager().postEncodedEntry(DefaultConfigs.ACCESS_TOKEN_URL, params, false);
return Converters.stringToAccessToken(responseStr);
} catch (UnsupportedEncodingException ex) {
throw ErrorHandler.getCustomDoubanException(100, "Exception in trading access token : " + ex.toString());
} catch (IOException ex) {
throw ErrorHandler.getCustomDoubanException(100, "Exception in trading access token : " + ex.toString());