|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.googleapis.services.AbstractGoogleClientRequest<T>
com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
com.google.api.services.androidpublisher.AndroidpublisherRequest<SubscriptionPurchase>
com.google.api.services.androidpublisher.Androidpublisher.Purchases.Get
public class Androidpublisher.Purchases.Get
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.api.client.util.GenericData |
|---|
GenericData.Flags |
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
protected |
Androidpublisher.Purchases.Get(String packageName,
String subscriptionId,
String token)
Checks whether a user's subscription purchase is valid and returns its expiry time. |
| Method Summary | |
|---|---|
HttpRequest |
buildHttpRequestUsingHead()
|
HttpResponse |
executeUsingHead()
|
String |
getPackageName()
The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
String |
getSubscriptionId()
The purchased subscription ID (for example, 'monthly001'). |
String |
getToken()
The token provided to the user's device when the subscription was purchased. |
Androidpublisher.Purchases.Get |
set(String parameterName,
Object value)
|
Androidpublisher.Purchases.Get |
setAlt(String alt)
Data format for the response. |
Androidpublisher.Purchases.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response. |
Androidpublisher.Purchases.Get |
setKey(String key)
API key. |
Androidpublisher.Purchases.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user. |
Androidpublisher.Purchases.Get |
setPackageName(String packageName)
The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
Androidpublisher.Purchases.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks. |
Androidpublisher.Purchases.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications. |
Androidpublisher.Purchases.Get |
setSubscriptionId(String subscriptionId)
The purchased subscription ID (for example, 'monthly001'). |
Androidpublisher.Purchases.Get |
setToken(String token)
The token provided to the user's device when the subscription was purchased. |
Androidpublisher.Purchases.Get |
setUserIp(String userIp)
IP address of the site where the request originates. |
| Methods inherited from class com.google.api.services.androidpublisher.AndroidpublisherRequest |
|---|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders |
| Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest |
|---|
getJsonContent, newExceptionOnError, queue |
| Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClientRequest |
|---|
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue |
| Methods inherited from class com.google.api.client.util.GenericData |
|---|
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys |
| Methods inherited from class java.util.AbstractMap |
|---|
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Androidpublisher.Purchases.Get(String packageName,
String subscriptionId,
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 for which this subscription was purchased (for example,
'com.some.thing').subscriptionId - The purchased subscription ID (for example, 'monthly001').token - The token provided to the user's device when the subscription was purchased.| Method Detail |
|---|
public HttpResponse executeUsingHead()
throws IOException
executeUsingHead in class AbstractGoogleClientRequest<SubscriptionPurchase>IOException
public HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<SubscriptionPurchase>IOExceptionpublic Androidpublisher.Purchases.Get setAlt(String alt)
AndroidpublisherRequest
setAlt in class AndroidpublisherRequest<SubscriptionPurchase>public Androidpublisher.Purchases.Get setFields(String fields)
AndroidpublisherRequest
setFields in class AndroidpublisherRequest<SubscriptionPurchase>public Androidpublisher.Purchases.Get setKey(String key)
AndroidpublisherRequest
setKey in class AndroidpublisherRequest<SubscriptionPurchase>public Androidpublisher.Purchases.Get setOauthToken(String oauthToken)
AndroidpublisherRequest
setOauthToken in class AndroidpublisherRequest<SubscriptionPurchase>public Androidpublisher.Purchases.Get setPrettyPrint(Boolean prettyPrint)
AndroidpublisherRequest
setPrettyPrint in class AndroidpublisherRequest<SubscriptionPurchase>public Androidpublisher.Purchases.Get setQuotaUser(String quotaUser)
AndroidpublisherRequest
setQuotaUser in class AndroidpublisherRequest<SubscriptionPurchase>public Androidpublisher.Purchases.Get setUserIp(String userIp)
AndroidpublisherRequest
setUserIp in class AndroidpublisherRequest<SubscriptionPurchase>public String getPackageName()
public Androidpublisher.Purchases.Get setPackageName(String packageName)
public String getSubscriptionId()
public Androidpublisher.Purchases.Get setSubscriptionId(String subscriptionId)
public String getToken()
public Androidpublisher.Purchases.Get setToken(String token)
public Androidpublisher.Purchases.Get set(String parameterName,
Object value)
set in class AndroidpublisherRequest<SubscriptionPurchase>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||