Package com.github.scribejava.apis
Class ImgurApi
- java.lang.Object
-
- com.github.scribejava.core.builder.api.DefaultApi20
-
- com.github.scribejava.apis.ImgurApi
-
- All Implemented Interfaces:
BaseApi<OAuth20Service>
public class ImgurApi extends DefaultApi20
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ImgurApi()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ImgurOAuthService
createService(String apiKey, String apiSecret, String callback, String defaultScope, OutputStream debugStream, String responseType, String userAgent, HttpClientConfig httpClientConfig, HttpClient httpClient)
ImgurOAuthService
createService(String apiKey, String apiSecret, String callback, String defaultScope, String responseType, String userAgent, HttpClientConfig httpClientConfig, HttpClient httpClient)
String
getAccessTokenEndpoint()
protected String
getAuthorizationBaseUrl()
String
getAuthorizationUrl(String responseType, String apiKey, String callback, String scope, String state, Map<String,String> additionalParams)
static ImgurApi
instance()
static boolean
isOob(String callback)
-
Methods inherited from class com.github.scribejava.core.builder.api.DefaultApi20
getAccessTokenExtractor, getAccessTokenVerb, getBearerSignature, getClientAuthentication, getRefreshTokenEndpoint, getRevokeTokenEndpoint
-
-
-
-
Method Detail
-
instance
public static ImgurApi instance()
-
getAccessTokenEndpoint
public String getAccessTokenEndpoint()
- Specified by:
getAccessTokenEndpoint
in classDefaultApi20
-
getAuthorizationUrl
public String getAuthorizationUrl(String responseType, String apiKey, String callback, String scope, String state, Map<String,String> additionalParams)
- Overrides:
getAuthorizationUrl
in classDefaultApi20
-
getAuthorizationBaseUrl
protected String getAuthorizationBaseUrl()
- Specified by:
getAuthorizationBaseUrl
in classDefaultApi20
-
createService
@Deprecated public ImgurOAuthService createService(String apiKey, String apiSecret, String callback, String defaultScope, OutputStream debugStream, String responseType, String userAgent, HttpClientConfig httpClientConfig, HttpClient httpClient)
- Specified by:
createService
in interfaceBaseApi<OAuth20Service>
- Overrides:
createService
in classDefaultApi20
- Parameters:
apiKey
- apiKeyapiSecret
- apiSecretcallback
- callbackdefaultScope
- defaultScopedebugStream
- debugStreamresponseType
- responseTypeuserAgent
- userAgenthttpClientConfig
- httpClientConfighttpClient
- httpClient- Returns:
- service
-
createService
public ImgurOAuthService createService(String apiKey, String apiSecret, String callback, String defaultScope, String responseType, String userAgent, HttpClientConfig httpClientConfig, HttpClient httpClient)
- Overrides:
createService
in classDefaultApi20
-
isOob
public static boolean isOob(String callback)
-
-