@Path(value="shops/{shopId}")
public class AccessTokenResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private OAuth2AppInstallationService |
oAuth2AppInstallationService |
private OfficialAppService |
officialAppService |
private javax.inject.Provider<Shop> |
shopProvider |
Constructor and Description |
---|
AccessTokenResource(javax.inject.Provider<Shop> shopProvider,
OfficialAppService officialAppService,
OAuth2AppInstallationService oAuth2AppInstallationService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createToken(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String authorizationCode) |
private final javax.inject.Provider<Shop> shopProvider
private final OfficialAppService officialAppService
private final OAuth2AppInstallationService oAuth2AppInstallationService
@Inject public AccessTokenResource(javax.inject.Provider<Shop> shopProvider, OfficialAppService officialAppService, OAuth2AppInstallationService oAuth2AppInstallationService)
@POST @Path(value="token") @Consumes(value="application/x-www-form-urlencoded") @Produces(value="application/vnd.epages.v1+json, application/json") public javax.ws.rs.core.Response createToken(@NotNull @FormParam(value="client_id") java.lang.String clientId, @NotNull @FormParam(value="client_secret") java.lang.String clientSecret, @NotNull @FormParam(value="code") java.lang.String authorizationCode)