如何使用socialauth-android库的api()方法?

时间:2013-12-26 09:33:02

标签: android api linkedin socialauth

社会认证库的api方法包含以下参数。

api(final String url,final String methodType,final Map params,final Map headerParams,final String body)

请给我一个唱这种方法的例子。

提前致谢。

1 个答案:

答案 0 :(得分:-1)

@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;
    }

请参阅此 link