public class AndroidPublisher.Purchases.Products.Get extends AndroidPublisherRequest<ProductPurchase>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Get(String packageName,
String productId,
String token)
Checks the purchase and consumption status of an inapp item.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getPackageName()
The package name of the application the inapp product was sold in (for example, 'com.some.thing').
|
String |
getProductId()
The inapp product SKU (for example, 'com.some.thing.inapp1').
|
String |
getToken()
The token provided to the user's device when the inapp product was purchased.
|
AndroidPublisher.Purchases.Products.Get |
set(String parameterName,
Object value) |
AndroidPublisher.Purchases.Products.Get |
setAlt(String alt)
Data format for the response.
|
AndroidPublisher.Purchases.Products.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
AndroidPublisher.Purchases.Products.Get |
setKey(String key)
API key.
|
AndroidPublisher.Purchases.Products.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
AndroidPublisher.Purchases.Products.Get |
setPackageName(String packageName)
The package name of the application the inapp product was sold in (for example,
'com.some.thing').
|
AndroidPublisher.Purchases.Products.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
AndroidPublisher.Purchases.Products.Get |
setProductId(String productId)
The inapp product SKU (for example, 'com.some.thing.inapp1').
|
AndroidPublisher.Purchases.Products.Get |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
AndroidPublisher.Purchases.Products.Get |
setToken(String token)
The token provided to the user's device when the inapp product was purchased.
|
AndroidPublisher.Purchases.Products.Get |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Get(String packageName, String productId, String token)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
AndroidPublisher.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
packageName - The package name of the application the inapp product was sold in (for example, 'com.some.thing').productId - The inapp product SKU (for example, 'com.some.thing.inapp1').token - The token provided to the user's device when the inapp product was purchased.public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<ProductPurchase>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<ProductPurchase>IOExceptionpublic AndroidPublisher.Purchases.Products.Get setAlt(String alt)
AndroidPublisherRequestsetAlt in class AndroidPublisherRequest<ProductPurchase>public AndroidPublisher.Purchases.Products.Get setFields(String fields)
AndroidPublisherRequestsetFields in class AndroidPublisherRequest<ProductPurchase>public AndroidPublisher.Purchases.Products.Get setKey(String key)
AndroidPublisherRequestsetKey in class AndroidPublisherRequest<ProductPurchase>public AndroidPublisher.Purchases.Products.Get setOauthToken(String oauthToken)
AndroidPublisherRequestsetOauthToken in class AndroidPublisherRequest<ProductPurchase>public AndroidPublisher.Purchases.Products.Get setPrettyPrint(Boolean prettyPrint)
AndroidPublisherRequestsetPrettyPrint in class AndroidPublisherRequest<ProductPurchase>public AndroidPublisher.Purchases.Products.Get setQuotaUser(String quotaUser)
AndroidPublisherRequestsetQuotaUser in class AndroidPublisherRequest<ProductPurchase>public AndroidPublisher.Purchases.Products.Get setUserIp(String userIp)
AndroidPublisherRequestsetUserIp in class AndroidPublisherRequest<ProductPurchase>public String getPackageName()
public AndroidPublisher.Purchases.Products.Get setPackageName(String packageName)
public String getProductId()
public AndroidPublisher.Purchases.Products.Get setProductId(String productId)
public String getToken()
public AndroidPublisher.Purchases.Products.Get setToken(String token)
public AndroidPublisher.Purchases.Products.Get set(String parameterName, Object value)
set in class AndroidPublisherRequest<ProductPurchase>Copyright © 2011–2019 Google. All rights reserved.