Retrieving .apk and .ipa binaries for mobile apps.
http://apis.wso2.com/api/appm/publisher/v1.1/apps/mobile/binaries/{fileName}
GET
appm:create
curl -X GET -H "Authorization: Bearer 0763d28a85f20d6fd8954f955859055c" "http://localhost:9763/api/appm/publisher/v1.1/apps/mobile/binaries/O0lsxdlhR998Hhc.apk"
HTTP/1.1 200 OK
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 |
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 .apk/.IPA binary files.
http://apis.wso2.com/api/appm/publisher/v1.1/apps/mobile/binaries
POST
appm:create
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"
{"version": "1.0","package": "home.jmstudios.calc","path": "O0lsxdlhR998Hhc.apk"}
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 |
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 |