public class AndroidPublisherHelper extends Object
Before making any calls to the API through the client library you need to
call the init(String)
method. This will run
all precondition checks for for client id and secret setup properly in
resources/client_secrets.json and authorize this client against the API.
Modifier and Type | Field and Description |
---|---|
static String |
MIME_TYPE_APK |
static String |
MIME_TYPE_IMAGE |
Constructor and Description |
---|
AndroidPublisherHelper() |
Modifier and Type | Method and Description |
---|---|
static com.google.api.services.androidpublisher.AndroidPublisher |
init(String applicationName)
Performs all necessary setup steps for running requests against the API
using the Installed Application auth method.
|
static com.google.api.services.androidpublisher.AndroidPublisher |
init(String applicationName,
String serviceAccountEmail)
Performs all necessary setup steps for running requests against the API.
|
static com.google.api.services.androidpublisher.AndroidPublisher |
init(String applicationName,
String serviceAccountEmail,
File pk12File)
Performs all necessary setup steps for running requests against the API.
|
public static final String MIME_TYPE_APK
public static final String MIME_TYPE_IMAGE
public static com.google.api.services.androidpublisher.AndroidPublisher init(String applicationName) throws Exception
applicationName
- the name of the application: com.example.appException
public static com.google.api.services.androidpublisher.AndroidPublisher init(String applicationName, @Nullable String serviceAccountEmail) throws IOException, GeneralSecurityException
applicationName
- the name of the application: com.example.appserviceAccountEmail
- the Service Account Email (empty if using
installed application)GeneralSecurityException
IOException
public static com.google.api.services.androidpublisher.AndroidPublisher init(String applicationName, String serviceAccountEmail, File pk12File) throws IOException, GeneralSecurityException
serviceAccountEmail
- the Service Account Email (empty if using
installed application)GeneralSecurityException
IOException
Copyright © 2008–2019 simpligility technologies inc.. All rights reserved.