MobileAppsApi


Retrieving mobile application binaries

Retrieving .apk and .ipa binaries for mobile apps.

URL

http://apis.wso2.com/api/appm/publisher/v1.1/apps/mobile/binaries/{fileName}

HTTP Method

GET

Scope

appm:create

CURL Example

curl -X GET -H "Authorization: Bearer 0763d28a85f20d6fd8954f955859055c" "http://localhost:9763/api/appm/publisher/v1.1/apps/mobile/binaries/O0lsxdlhR998Hhc.apk"

Sample Response

HTTP/1.1 200 OK

Parameters

Type Name Description Schema Default
Path

fileName

required

The file name.

String

Header

If-Match

optional

Validator for conditional requests; based on the ETag.

String

Header

If-Unmodified-Since

optional

Validator for conditional requests; based on the Last Modified header.

String

Responses

HTTP Code Description Schema

200

OK. Mobile app binary content retrieved successfully.

file

400

Bad Request. Invalid request or validation error.

Error

404

Not Found. Requested entity does not exist.

Error

412

Precondition Failed. The request has not been performed because one of the preconditions is not met.

Error

Uploading binary files

Uploading .apk/.IPA binary files.

URL

http://apis.wso2.com/api/appm/publisher/v1.1/apps/mobile/binaries

HTTP Method

POST

Scope

appm:create

CURL Example

curl -X POST -H "Authorization: Bearer 31b72e5a9158a413187532b052953f68" -H "Content-Type: multipart/form-data" -F "file=@/home/user/sample.apk" "http://localhost:9763/api/appm/publisher/v1.1/apps/mobile/binaries"

Sample Response

{"version": "1.0","package": "home.jmstudios.calc","path": "O0lsxdlhR998Hhc.apk"}

Parameters

Type Name Description Schema Default
Form

file

optional

Document to be uploaded.

file

Header

If-Match

optional

Validator for conditional requests; based on the ETag.

String

Header

If-Unmodified-Since

optional

Validator for conditional requests; based on the Last Modified header.

String

Responses

HTTP Code Description Schema

200

OK. Binary file uploaded successfully.

Binary

400

Bad Request. Invalid request or validation error.

Error

404

Not Found. Requested App does not exist.

Error

412

Precondition Failed. The request has not been performed because one of the preconditions is not met.

Error