POST api/Upgrade/StartMessage

启动时消息

Request Information

URI Parameters

None.

Body Parameters

StartMessageReq
NameDescriptionTypeAdditional information
InnerVersion

内部版本号

integer

None.

ProductId

产品编号

integer

None.

Token

令牌,唯一标识,主要用来验权

string

None.

ChannalId

渠道号

string

None.

Version

外部版本

string

None.

language

语言

string

None.

Request Formats

application/json, text/json

Sample:
{
  "InnerVersion": 1,
  "ProductId": 2,
  "Token": "sample string 3",
  "ChannalId": "sample string 4",
  "Version": "sample string 5",
  "language": "sample string 6"
}

application/xml, text/xml

Sample:
<StartMessageReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <ChannalId>sample string 4</ChannalId>
  <ProductId>2</ProductId>
  <Token>sample string 3</Token>
  <Version>sample string 5</Version>
  <language>sample string 6</language>
  <InnerVersion>1</InnerVersion>
</StartMessageReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

StartMessageRes
NameDescriptionTypeAdditional information
MessageType

消息类型,1为升级,5为强制升级,2是公告

integer

None.

MessageTitle

标题

string

None.

MessageContent

内容

string

None.

TargetUrl

目标地址

string

None.

Message

消息

string

None.

Status

状态,默认情况下,1为成功。0为失败。99为权限验证失败。

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "MessageType": 1,
  "MessageTitle": "sample string 2",
  "MessageContent": "sample string 3",
  "TargetUrl": "sample string 4",
  "Message": "sample string 5",
  "Status": 6
}

application/xml, text/xml

Sample:
<StartMessageRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <Message>sample string 5</Message>
  <Status>6</Status>
  <MessageContent>sample string 3</MessageContent>
  <MessageTitle>sample string 2</MessageTitle>
  <MessageType>1</MessageType>
  <TargetUrl>sample string 4</TargetUrl>
</StartMessageRes>