public class FrydOAuthService
extends java.lang.Object
| Constructor and Description |
|---|
FrydOAuthService(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String returnUrl) |
FrydOAuthService(java.lang.String CLIENT_ID,
java.lang.String clientSecret,
java.lang.String returnUrl,
AbstractFrydProvider oauthProvider) |
| Modifier and Type | Method and Description |
|---|---|
FrydAPIService |
createFrydAPIService()
Creates a FrydAPIService which can be used to query the
fryd API.
|
com.github.scribejava.core.model.OAuth2AccessToken |
getAppAccessToken()
Gets an Access Token with the Scope "AppInfo" to get
Information of your fryd Spots and everything about them
|
java.util.concurrent.Future<com.github.scribejava.core.model.OAuth2AccessToken> |
getAppAccessTokenAsync()
Gets an Access Token in an async way with the Scope "AppInfo" to get
Information of your fryd Spots and everything about them
|
java.lang.String |
getAuthorizationUrl()
Returns the authorization URL that must be visited to get an
Authorization Code... to get a personal Access Token for that User
|
com.github.scribejava.core.model.OAuth2AccessToken |
getUserAccessToken(java.lang.String code)
Gets an Access Token with the Scope "UserInfo" to get
Information of the User how created the code
|
java.util.concurrent.Future<com.github.scribejava.core.model.OAuth2AccessToken> |
getUserAccessTokenAsync(java.lang.String code)
Gets an Access Token in an async way with the Scope "UserInfo" to get
Information of the User how created the code.
|
com.github.scribejava.core.model.OAuth2AccessToken |
refreshToken(com.github.scribejava.core.model.OAuth2AccessToken anyAccessToken)
Gets an Access Token with the Scope "AppInfo" or "UserInfo"
depending on the provided token, using an existing Token.
|
java.util.concurrent.Future<com.github.scribejava.core.model.OAuth2AccessToken> |
refreshTokenAsync(com.github.scribejava.core.model.OAuth2AccessToken anyAccessToken)
Gets an Access Token, in an async way, with the Scope "AppInfo" or "UserInfo"
depending on the provided token, using an existing Token.
|
public FrydOAuthService(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String returnUrl)
public FrydOAuthService(java.lang.String CLIENT_ID,
java.lang.String clientSecret,
java.lang.String returnUrl,
AbstractFrydProvider oauthProvider)
public FrydAPIService createFrydAPIService()
public java.lang.String getAuthorizationUrl()
public com.github.scribejava.core.model.OAuth2AccessToken getUserAccessToken(java.lang.String code)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.io.IOException
code - java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionpublic java.util.concurrent.Future<com.github.scribejava.core.model.OAuth2AccessToken> getUserAccessTokenAsync(java.lang.String code)
code - public com.github.scribejava.core.model.OAuth2AccessToken getAppAccessToken()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.io.IOException
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionpublic java.util.concurrent.Future<com.github.scribejava.core.model.OAuth2AccessToken> getAppAccessTokenAsync()
public com.github.scribejava.core.model.OAuth2AccessToken refreshToken(com.github.scribejava.core.model.OAuth2AccessToken anyAccessToken)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.io.IOException
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionpublic java.util.concurrent.Future<com.github.scribejava.core.model.OAuth2AccessToken> refreshTokenAsync(com.github.scribejava.core.model.OAuth2AccessToken anyAccessToken)