Google Play Android Developer API v1 (revision 10)



com.google.api.services.androidpublisher
Class Androidpublisher.Purchases

java.lang.Object
  extended by com.google.api.services.androidpublisher.Androidpublisher.Purchases
Enclosing class:
Androidpublisher

public class Androidpublisher.Purchases
extends Object

The "purchases" collection of methods.


Nested Class Summary
 class Androidpublisher.Purchases.Cancel
           
 class Androidpublisher.Purchases.Get
           
 
Constructor Summary
Androidpublisher.Purchases()
           
 
Method Summary
 Androidpublisher.Purchases.Cancel cancel(String packageName, String subscriptionId, String token)
          Cancels a user's subscription purchase.
 Androidpublisher.Purchases.Get get(String packageName, String subscriptionId, String token)
          Checks whether a user's subscription purchase is valid and returns its expiry time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Androidpublisher.Purchases

public Androidpublisher.Purchases()
Method Detail

cancel

public Androidpublisher.Purchases.Cancel cancel(String packageName,
                                                String subscriptionId,
                                                String token)
                                         throws IOException
Cancels a user's subscription purchase. The subscription remains valid until its expiration time. Create a request for the method "purchases.cancel". This request holds the parameters needed by the the androidpublisher server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
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.
Returns:
the request
Throws:
IOException

get

public Androidpublisher.Purchases.Get get(String packageName,
                                          String subscriptionId,
                                          String token)
                                   throws IOException
Checks whether a user's subscription purchase is valid and returns its expiry time. Create a request for the method "purchases.get". This request holds the parameters needed by the the androidpublisher server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
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.
Returns:
the request
Throws:
IOException