target.apidocs.com.google.api.services.androidpublisher.AndroidPublisher.Purchases.Subscriptionsv2.html Maven / Gradle / Ivy
AndroidPublisher.Purchases.Subscriptionsv2 (Google Play Android Developer API v3-rev20240129-2.0.0)
com.google.api.services.androidpublisher
Class AndroidPublisher.Purchases.Subscriptionsv2
- java.lang.Object
-
- com.google.api.services.androidpublisher.AndroidPublisher.Purchases.Subscriptionsv2
-
- Enclosing class:
- AndroidPublisher.Purchases
public class AndroidPublisher.Purchases.Subscriptionsv2
extends Object
The "subscriptionsv2" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
AndroidPublisher.Purchases.Subscriptionsv2.Get
class
AndroidPublisher.Purchases.Subscriptionsv2.Revoke
-
Constructor Summary
Constructors
Constructor and Description
Subscriptionsv2()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AndroidPublisher.Purchases.Subscriptionsv2.Get
get(String packageName,
String token)
Get metadata about a subscription
Create a request for the method "subscriptionsv2.get".
AndroidPublisher.Purchases.Subscriptionsv2.Revoke
revoke(String packageName,
String token,
RevokeSubscriptionPurchaseRequest content)
Revoke a subscription purchase for the user.
-
-
Method Detail
-
get
public AndroidPublisher.Purchases.Subscriptionsv2.Get get(String packageName,
String token)
throws IOException
Get metadata about a subscription
Create a request for the method "subscriptionsv2.get".
This request holds the parameters needed by the androidpublisher server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
packageName
- The package of the application for which this subscription was purchased (for example,
'com.some.thing').
token
- Required. The token provided to the user's device when the subscription was purchased.
- Returns:
- the request
- Throws:
IOException
-
revoke
public AndroidPublisher.Purchases.Subscriptionsv2.Revoke revoke(String packageName,
String token,
RevokeSubscriptionPurchaseRequest content)
throws IOException
Revoke a subscription purchase for the user.
Create a request for the method "subscriptionsv2.revoke".
This request holds the parameters needed by the androidpublisher server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
packageName
- Required. The package of the application for which this subscription was purchased (for example,
'com.some.thing').
token
- Required. The token provided to the user's device when the subscription was purchased.
content
- the RevokeSubscriptionPurchaseRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy