public class AndroidPublisher extends AbstractGoogleJsonClient
Lets Android application developers access their Google Play accounts.
For more information about this service, see the API Documentation
This service uses AndroidPublisherRequestInitializer
to initialize global parameters via its
AndroidPublisher.Builder
.
Upgrade warning: this class now extends AbstractGoogleJsonClient
, whereas in prior
version 1.8 it extended GoogleClient
.
Modifier and Type | Class and Description |
---|---|
static class |
AndroidPublisher.Builder
Builder for
AndroidPublisher . |
class |
AndroidPublisher.Purchases
The "purchases" collection of methods.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BASE_URL
Deprecated.
(scheduled to be removed in 1.13)
|
static String |
DEFAULT_ROOT_URL
The default encoded root URL of the service.
|
static String |
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
|
Constructor and Description |
---|
AndroidPublisher(HttpTransport transport,
JsonFactory jsonFactory,
HttpRequestInitializer httpRequestInitializer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
initialize(AbstractGoogleClientRequest<?> httpClientRequest) |
AndroidPublisher.Purchases |
purchases()
An accessor for creating requests from the Purchases collection.
|
getJsonFactory, getObjectParser
batch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks
public static final String DEFAULT_ROOT_URL
public static final String DEFAULT_SERVICE_PATH
@Deprecated public static final String DEFAULT_BASE_URL
public AndroidPublisher(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer httpRequestInitializer)
Use AndroidPublisher.Builder
if you need to specify any of the optional parameters.
transport
- HTTP transportjsonFactory
- JSON factoryhttpRequestInitializer
- HTTP request initializer or null
for noneprotected void initialize(AbstractGoogleClientRequest<?> httpClientRequest) throws IOException
initialize
in class AbstractGoogleClient
IOException
public AndroidPublisher.Purchases purchases()
The typical use is:
AndroidPublisher androidpublisher = new AndroidPublisher(...);
AndroidPublisher.Purchases.List request = androidpublisher.purchases().list(parameters ...)