app-market/info
App information for an app.
POST
Use this resource to obtain the app information for an unprotected iOS (.ipa) or Android (.apk) app.
Pass in the app and the policy console response contains the app information in JSON format, which includes the app name, the package name, the version code, and the version name.
Parameters
Parameter | Description |
---|---|
application | Required. The value for this parameter is the iOS or Android app binary. See example request below for how this parameter is used in a cURL command. |
Example request
Request
curl -L -b c.txt -c c.txt -X \
POST https://bc.qwe.com:443/mocana-app-control/rest/app-market/info
-F application=@iTelnet-v1.4.ipa
Response for an iOS app
{
"application_info": {
"name": "iTelnet",
"package_name": "com.eddie.iTelnet",
"version_code": "1.4"
},
"message": "",
"status": "OK"
}
(iOS apps only) If the version_name field is not included in the response, the most likely cause is that an optional parameter in the app's Info.plist file was not set. Check this file to see if the CFBundleShortVersionString parameter was set.
Response for an Android app
{
"application_info": {
"name": "ACTIVITY_ENTRY_NAME",
"package_name": "org.kman.AquaMail",
"version_code": "2100174",
"version_name": "1.2.1.2"
},
"message": "",
"status": "OK"
}
If the app has been previously secured, the policy console returns this message:
Response
{
"message": "This app has been previously wrapped. Please load an unwrapped version of the app.",
"status": "Error"
}