MobileAppsApi


Retrieving file

Retrieving a file saved with an App.

URL

http://apis.wso2.com/api/appm/store/v1.1/apps/{appType}/id/{appId}/storage/{fileName}

HTTP Method

GET

Scope

appm:read

CURL Example

Sample Request

Sample Response

Parameters

Type Name Description Schema Default
Path

appType

required

The App type (either Webapp/Mobile app).

String

Path

appId

required

**APP ID** consisting of the **UUID** of the App. The following combination is also accepted as a valid APP ID: the provider of the app, name of the App and the version. Should be formatted as **provider-name-version**.

String

Path

fileName

required

The file name.

String

Header

If-Match

optional

Validator for conditional requests; based on 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.

file

400

Bad Request. Invalid request or validation error.

Error

404

Not Found. Requested entity does not exist.

Error

Retrieving mobile application binaries

Retrieving .apk and .ipa binaries for mobile apps.

URL

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

HTTP Method

GET

Scope

appm:read

CURL Example

curl -X GET -H "Authorization: Bearer 980c5e45f2415f0b1ab8923f2c593c85" "http://localhost:9763/api/appm/publisher/v1.1/apps/mobile/binaries/RKHktVsxjmFOZz1.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 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

Retrieving mobile application binary

Retrieving .apk and .ipa binaries for mobile apps.

URL

http://apis.wso2.com/api/appm/store/v1.1/apps/mobile/binaries/one-time/{uuid}

HTTP Method

GET

Scope

appm:read

CURL Example

curl -X GET -H "http://localhost:9763/api/appm/store/v1.1/apps/mobile/binaries/one-time/fa1f4634-77cb-4bd7-9100-f0dcf0a04d6a"

Sample Response

HTTP/1.1 200 OK

Parameters

Type Name Description Schema Default
Path

uuid

required

The UUID parameter of the one-time download link, which has the external representation of a downloadable binary file

String

Header

If-Match

optional

Validator for conditional requests; based on 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

403

Forbidden. The request must be conditional but no condition has been specified.

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

Retrieving plist for ios app installation

Retrieving plist for ios mobile apps.

URL

http://apis.wso2.com/api/appm/store/v1.1/apps/mobile/plist/{appId}/{uuid}

HTTP Method

GET

Scope

appm:read

CURL Example

curl -X GET "http://localhost:9763/api/appm/store/v1.1/apps/mobile/plist/f2d9703b-df65-4b8a-8250-0d033e969f55/50ba9a5e-a261-453d-a58f-c6b68d42150d"

Sample Response

HTTP/1.1 200 OK

Parameters

Type Name Description Schema Default
Path

appId

required

**APP ID** consisting of the **UUID** of the App. The following combination is also accepted as a valid APP ID: the provider of the app, name of the App and the version. Should be formatted as **provider-name-version**.

String

Path

uuid

required

The UUID parameter of the one-time download link, which has the external representation of a downloadable binary file

String

Header

If-Match

optional

Validator for conditional requests; based on 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. IOS Mobile app plist 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

Schedule Install App

Schedule Install an App

URL

http://apis.wso2.com/api/appm/store/v1.1/apps/mobile/schedule-install

HTTP Method

POST

Scope

appm:subscribe

CURL Example

curl -X POST -H "Authorization: Bearer 795740b5fa8e632f9c2d969b6165b7fc" -H "Content-Type: application/json" -d '{ "deviceIds": ["{\"id\":\"358812061121105\",\"type\":\"ANDROID\"}"], "appId": "35050dda-217f-4638-9e1d-bbcf5aebc09b", "scheduleTime":"04-30-2016 11:25 am" } ' "http://localhost:9763/api/appm/store/v1.1/apps/mobile/schedule-install"

Sample Request

{ "deviceIds": ["{\"id\":\"358812061121105\",\"type\":\"ANDROID\"}"], "appId": "35050dda-217f-4638-9e1d-bbcf5aebc09b", "scheduleTime":"04-30-2016 11:25 am" }

Sample Response

HTTP/1.1 200 OK

Parameters

Type Name Description Schema Default
Header

Content-Type

required

Media type of the entity in the body. Default is JSON.

String

JSON

Body

schedule

optional

Schedule (Schedule)

Responses

HTTP Code Description Schema

200

OK.

400

Bad Request. Invalid request or validation error.

Error

403

Forbidden. The request must be conditional but no condition has been specified.

Error

404

Not Found. Resource to be deleted does not exist.

Error

Schedule Update App

Schedule Update an App

URL

http://apis.wso2.com/api/appm/store/v1.1/apps/mobile/schedule-update

HTTP Method

POST

Scope

appm:create

CURL Example

curl -X POST -H "Authorization: Bearer 795740b5fa8e632f9c2d969b6165b7fc" -H "Content-Type: application/json" -d '{ "deviceIds": ["{\"id\":\"358812061121105\",\"type\":\"ANDROID\"}"], "appId": "35050dda-217f-4638-9e1d-bbcf5aebc09b", "scheduleTime":"04-30-2016 11:25 am" } ' "http://localhost:9763/api/appm/store/v1.1/apps/mobile/schedule-update"

Sample Request

{ "deviceIds": ["{\"id\":\"358812061121105\",\"type\":\"ANDROID\"}"], "appId": "35050dda-217f-4638-9e1d-bbcf5aebc09b", "scheduleTime":"04-30-2016 11:25 am" }

Sample Response

HTTP/1.1 200 OK

Parameters

Type Name Description Schema Default
Header

Content-Type

required

Media type of the entity in the body. Default is JSON.

String

JSON

Body

schedule

optional

Schedule (Schedule)

Responses

HTTP Code Description Schema

200

OK.

400

Bad Request. Invalid request or validation error.

Error

403

Forbidden. The request must be conditional but no condition has been specified.

Error

404

Not Found. Resource to be deleted does not exist.

Error