public class ProviderSupport extends Object
| Constructor and Description |
|---|
ProviderSupport(OAuthStrategyBase strategy) |
| Modifier and Type | Method and Description |
|---|---|
Response |
api(String url)
Makes OAuth signed HTTP GET request to a given URL.
|
Response |
api(String url,
String methodType,
Map<String,String> params,
Map<String,String> headerParams,
String body)
Makes OAuth signed HTTP request to a given URL.
|
AccessGrant |
getAccessGrant()
Retrieves the AccessGrant object.
|
public ProviderSupport(OAuthStrategyBase strategy)
strategy - OAuth strategy objectpublic Response api(String url, String methodType, Map<String,String> params, Map<String,String> headerParams, String body) throws Exception
url - URL to make HTTP request.methodType - Method type can be GET, POST or PUTparams - Any additional parameters whose signature need to compute.
Only used in case of "POST" and "PUT" method type.headerParams - Any additional parameters need to pass as Header Parametersbody - Request BodyExceptionpublic Response api(String url) throws Exception
url - URL to make HTTP request.Exceptionpublic AccessGrant getAccessGrant()
Copyright © 2018. All Rights Reserved.