Skip to main content
Skip table of contents

app-market/{GUID}/apk

An application file.

GET

Returns an app binary, an APK or IPA file.

When you apply policies to an app, the policy console creates a new APK or IPA for the app. GET app-market/{GUID}/APK retrieves this new file. (If the app doesn't have any policies applied to it, the file is identical to the APK or IPA uploaded with POST app-market/upload.)

Parameters

ParameterDescription
GUIDRequired. The GUID for the app. To find GUIDs for all apps on the policy console, use GET app-market/catalog.
outputInclude -o output.apk or -o output.ipa to save the returned binary to a file.

Example request

Request

BASH
curl -b c.txt -c c.txt -X GET https://bc.qwe.com/mocana-app-control/rest/app-market/
0a22067f-d523-4864-8973-3a80f054d884/apk -o AppName.apk

The policy console responds with the binary, with these headers:

Response

JS
< HTTP/1.1 200 OK
< Date: Tue, 29 Nov 2011 21:57:43 GMT
< Server: Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8r Phusion_Passenger/3.0.9 mod_jk/1.2.32
< Content-Disposition: attachment; filename=AppName.apk
< Transfer-Encoding: chunked < Content-Type: application/vnd.android.package-archive 		
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.