public interface AuthorizationService
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessToken(java.lang.String shopId)
Get the access token that is bound to the passed
shop id.
|
java.lang.String |
getInitialAccessToken(java.lang.String shopId,
java.lang.String authcode,
java.lang.String redirectUri)
Gets a access token for using the passed authcode
and binds it to the passed shop id.
|
java.lang.String getInitialAccessToken(java.lang.String shopId, java.lang.String authcode, java.lang.String redirectUri) throws AuthorizationException, javax.persistence.PersistenceException
Identifier
- of the shop to use the access token for.Authcode
- to use for receiving the access token.Redirect
- Uri used to receive the authcode.AuthorizationException
- in case no access token
could be obtained.javax.persistence.PersistenceException
- in case there was an error
while persisting the the data.java.lang.String getAccessToken(java.lang.String shopId) throws AuthorizationException, javax.persistence.PersistenceException
Identifier
- of the shop to get a access token for.AuthorizationException
- in case no access token
could be obtained.javax.persistence.PersistenceException
- in case there was an error
while persisting the the data.