POST api/APPInfo/CheckVersion

CHECK FOR LATEST VERSION

Request Information

Body Parameters

NewVersionModel
NameDescriptionTypeAdditional information
VersionNo

Present APP version

string

None.

AppSystem

cell phone system 1:android 2:iOS

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "VersionNo": "sample string 1",
  "AppSystem": 2,
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<NewVersionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <Token>sample string 3</Token>
  <AppSystem>2</AppSystem>
  <VersionNo>sample string 1</VersionNo>
</NewVersionModel>

Response Information

Resource Description

Return to the APP if there is a new version

NewVersionResult
NameDescriptionTypeAdditional information
HasNewVersion

Whether there is a new version of the APP can be updated true have new APP to update

boolean

None.

DownloadUrl

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "HasNewVersion": true,
  "DownloadUrl": "sample string 2",
  "State": 3
}

application/xml, text/xml

Sample:
<NewVersionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>3</State>
  <DownloadUrl>sample string 2</DownloadUrl>
  <HasNewVersion>true</HasNewVersion>
</NewVersionResult>