Commit c9ebd651 authored by Quxl's avatar Quxl

x

parent bc673146
......@@ -166,6 +166,9 @@ public interface OAuthApi {
default String doPost(String url, Map<String, String> headers, JSONObject data) {
try {
logger.debug("oauth post: " + url);
logger.debug("oauth headers: " + JSON.toJSONString(headers));
logger.debug("oauth data: " + data.toJSONString());
String accept = "application/json";
String requestId = ("" + System.currentTimeMillis());
String countryCode = System.getProperty("X-SE-IFW-CountryCode");
......@@ -186,6 +189,7 @@ public interface OAuthApi {
clientRequest.setHeaders(headers);
OAuthResourceResponse resourceResponse = oAuthClient.resource(clientRequest, "POST", OAuthResourceResponse.class);
String resBody = resourceResponse.getBody();
logger.debug("oauth result: " + resBody);
return resBody;
} catch (OAuthApiException e) {
throw e;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment