com.akdeniz.googleplaycrawler.GooglePlay.BuyResponse

Here are the examples of the java api class com.akdeniz.googleplaycrawler.GooglePlay.BuyResponse taken from open source projects.

1. GooglePlayAPI#download()

View license
/**
     * Downloads given application package name, version and offer type. Version
     * code and offer type can be fetch by <code>details</code> interface.
     **/
public InputStream download(String packageName, int versionCode, int offerType) throws IOException {
    BuyResponse buyResponse = purchase(packageName, versionCode, offerType);
    AndroidAppDeliveryData appDeliveryData = buyResponse.getPurchaseStatusResponse().getAppDeliveryData();
    String downloadUrl = appDeliveryData.getDownloadUrl();
    HttpCookie downloadAuthCookie = appDeliveryData.getDownloadAuthCookie(0);
    return executeDownload(downloadUrl, downloadAuthCookie.getName() + "=" + downloadAuthCookie.getValue());
}

2. GooglePlayAPI#download()

Project: Raccoon
Source File: GooglePlayAPI.java
View license
/**
	 * Downloads given application package name, version and offer type. Version
	 * code and offer type can be fetch by <code>details</code> interface.
	 **/
public DownloadData download(String packageName, int versionCode, int offerType) throws IOException {
    BuyResponse buyResponse = purchase(packageName, versionCode, offerType);
    return new DownloadData(this, buyResponse.getPurchaseStatusResponse().getAppDeliveryData());
}