POST api/PublicV720/PostOpenApp

打开APP提交信息

Request Information

URI Parameters

None.

Body Parameters

ZaiMieApp.WebApi.ViewModel.OpenAppSubmitModel
NameDescriptionTypeAdditional information
userinfoId

用户Id

integer

None.

newspapergroupId

租户Id

integer

None.

gps_x

坐标

decimal number

None.

gps_y

坐标

decimal number

None.

ip

string

None.

deviceName

设备名称

string

None.

osVer

操作系统版本号

string

None.

appVer

App版本号

string

None.

phoneNumber

手机号码

string

None.

mobileType

手机类型 1Android 2Iphone

integer

None.

mobileTypeName

手机类型名称(ios android)

string

None.

deviceKey

设备号

string

None.

screenPoint

屏幕分辨率

string

None.

pushKey

推送Key

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userinfoId": 1,
  "newspapergroupId": 2,
  "gps_x": 3.1,
  "gps_y": 4.1,
  "ip": "sample string 5",
  "deviceName": "sample string 6",
  "osVer": "sample string 7",
  "appVer": "sample string 8",
  "phoneNumber": "sample string 9",
  "mobileType": 10,
  "mobileTypeName": "sample string 11",
  "deviceKey": "sample string 12",
  "screenPoint": "sample string 13",
  "pushKey": "sample string 14"
}

application/xml, text/xml

Sample:
<OpenAppSubmitModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <appVer>sample string 8</appVer>
  <deviceKey>sample string 12</deviceKey>
  <deviceName>sample string 6</deviceName>
  <gps_x>3.1</gps_x>
  <gps_y>4.1</gps_y>
  <ip>sample string 5</ip>
  <mobileType>10</mobileType>
  <mobileTypeName>sample string 11</mobileTypeName>
  <newspapergroupId>2</newspapergroupId>
  <osVer>sample string 7</osVer>
  <phoneNumber>sample string 9</phoneNumber>
  <pushKey>sample string 14</pushKey>
  <screenPoint>sample string 13</screenPoint>
  <userinfoId>1</userinfoId>
</OpenAppSubmitModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'ZaiMieApp.WebApi.ViewModel.OpenAppSubmitModel'.

Response Information

Resource Description

ZaiMieApp.WebApi.ViewModel.ResultMsg
NameDescriptionTypeAdditional information
success

boolean

None.

code

integer

None.

addcoin

赠送的金币

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "code": 2,
  "addcoin": 3,
  "message": "sample string 4"
}

application/xml, text/xml

Sample:
<ResultMsg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <addcoin>3</addcoin>
  <code>2</code>
  <message>sample string 4</message>
  <success>true</success>
</ResultMsg>