Package com.apple.itunes.storekit.client
Class AppStoreServerAPIClient
java.lang.Object
com.apple.itunes.storekit.client.BaseAppStoreServerAPIClient
com.apple.itunes.storekit.client.AppStoreServerAPIClient
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.apple.itunes.storekit.client.BaseAppStoreServerAPIClient
BaseAppStoreServerAPIClient.HttpResponseInterface -
Field Summary
Fields inherited from class com.apple.itunes.storekit.client.BaseAppStoreServerAPIClient
url -
Constructor Summary
ConstructorsConstructorDescriptionAppStoreServerAPIClient(BearerTokenAuthenticatorInterface bearerTokenAuthenticator, Environment environment) Create an App Store Server API client using a custom Bearer token providerAppStoreServerAPIClient(String signingKey, String keyId, String issuerId, String bundleId, Environment environment) Create an App Store Server API client -
Method Summary
Methods inherited from class com.apple.itunes.storekit.client.BaseAppStoreServerAPIClient
extendRenewalDateForAllActiveSubscribers, extendSubscriptionRenewalDate, getAllSubscriptionStatuses, getNotificationHistory, getRefundHistory, getStatusOfSubscriptionRenewalDateExtensions, getTestNotificationStatus, getTransactionHistory, getTransactionHistory, getTransactionInfo, getUrlForEnvironment, lookUpOrderId, makeHttpCall, requestTestNotification, sendConsumptionData, setAppAccountToken
-
Constructor Details
-
AppStoreServerAPIClient
public AppStoreServerAPIClient(String signingKey, String keyId, String issuerId, String bundleId, Environment environment) Create an App Store Server API client- Parameters:
signingKey- Your private key downloaded from App Store ConnectkeyId- Your private key ID from App Store ConnectissuerId- Your issuer ID from the Keys page in App Store ConnectbundleId- Your app’s bundle IDenvironment- The environment to target
-
AppStoreServerAPIClient
public AppStoreServerAPIClient(BearerTokenAuthenticatorInterface bearerTokenAuthenticator, Environment environment) Create an App Store Server API client using a custom Bearer token provider- Parameters:
bearerTokenAuthenticator- An implementation ofBearerTokenAuthenticatorInterfacethat provides tokensenvironment- The environment to target
-
-
Method Details
-
makeRequest
protected BaseAppStoreServerAPIClient.HttpResponseInterface makeRequest(String path, String method, Map<String, List<String>> queryParameters, Map<String, throws IOExceptionString> headers, String contentType, String body) Description copied from class:BaseAppStoreServerAPIClientMake an HTTP request- Specified by:
makeRequestin classBaseAppStoreServerAPIClient- Parameters:
path- The path of the requestmethod- The HTTP method of the requestqueryParameters- A map of query parameters for the requestheaders- A map of headers for the requestcontentType- The content type of the request, nullablebody- The Java object representing the body, nullable- Returns:
- An
BaseAppStoreServerAPIClient.HttpResponseInterfacerepresenting the status code and optional response body - Throws:
IOException- If an exception was thrown while making the request
-
getResponse
- Throws:
IOException
-