社交身份验证库的 api 方法包含以下参数。
api(final String url, final StringmethodType, final Map params, final Map headerParams, final String body)
请给我举个例子来唱这个方法。
提前谢谢。
@Override
public Response api(final String url, final String methodType,
final Map<String, String> params,
final Map<String, String> headerParams, final String body)
throws Exception {
if (!isVerify) {
throw new SocialAuthException(
"Please call verifyResponse function first to get Access Token");
}
Response response = null;
LOG.debug("Calling URL : " + url);
response = authenticationStrategy.executeFeed(url, methodType, params,
headerParams, body);
return response;
}
参考此链接