POST api/Mobile/CheckForUpdate
Request Information
URI Parameters
None.
Body Parameters
Mobile_CheckForUpdateRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| AppName | string |
None. |
|
| DeviceUniqueId | string |
None. |
|
| AppVersion | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"AppName": "sample string 1",
"DeviceUniqueId": "sample string 2",
"AppVersion": "sample string 3"
}
application/xml, text/xml
Sample:
<Mobile_CheckForUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PharmatoolsMobileREST.Models"> <AppName>sample string 1</AppName> <AppVersion>sample string 3</AppVersion> <DeviceUniqueId>sample string 2</DeviceUniqueId> </Mobile_CheckForUpdateRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Mobile_UpdatePackage| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | Mobile_CheckForUpdateResult |
None. |
|
| ResultMessage | string |
None. |
|
| IsAvailable | boolean |
None. |
|
| PackageContent | Collection of byte |
None. |
|
| LastAppVersion | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": 0,
"ResultMessage": "sample string 1",
"IsAvailable": true,
"PackageContent": "QEA=",
"LastAppVersion": "sample string 3"
}
application/xml, text/xml
Sample:
<Mobile_UpdatePackage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PharmatoolsMobileREST.Models"> <IsAvailable>true</IsAvailable> <LastAppVersion>sample string 3</LastAppVersion> <PackageContent>QEA=</PackageContent> <Result>GenericError</Result> <ResultMessage>sample string 1</ResultMessage> </Mobile_UpdatePackage>