Package com.github.scribejava.apis
Class PolarAPI
java.lang.Object
com.github.scribejava.core.builder.api.DefaultApi20
com.github.scribejava.apis.PolarAPI
Polar's OAuth2 client's implementation source: https://www.polar.com/accesslink-api/#authentication
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService
(String apiKey, String apiSecret, String callback, String defaultScope, String responseType, OutputStream debugStream, String userAgent, HttpClientConfig httpClientConfig, HttpClient httpClient) protected String
static PolarAPI
instance()
Methods inherited from class com.github.scribejava.core.builder.api.DefaultApi20
getAccessTokenVerb, getAuthorizationUrl, getBearerSignature, getClientAuthentication, getDeviceAuthorizationEndpoint, getDeviceAuthorizationExtractor, getRefreshTokenEndpoint, getRevokeTokenEndpoint
-
Constructor Details
-
PolarAPI
protected PolarAPI()
-
-
Method Details
-
instance
-
getAccessTokenEndpoint
- Specified by:
getAccessTokenEndpoint
in classDefaultApi20
-
getAuthorizationBaseUrl
- Specified by:
getAuthorizationBaseUrl
in classDefaultApi20
-
createService
public PolarOAuthService createService(String apiKey, String apiSecret, String callback, String defaultScope, String responseType, OutputStream debugStream, String userAgent, HttpClientConfig httpClientConfig, HttpClient httpClient) - Overrides:
createService
in classDefaultApi20
-
getAccessTokenExtractor
- Overrides:
getAccessTokenExtractor
in classDefaultApi20
-