POST api/AppLog/AddAppStartLog

应用启动日志上报: 内网上报地址 http://appdata.fdq.dev.q1.com/api/AppLog/AddAppStartLog 外网上报地址 https://appdata.q1.com/api/AppLog/AddAppStartLog

Request Information

URI Parameters

None.

Body Parameters

AppStartLog
NameDescriptionTypeAdditional information
APPID

应用id

integer

Required

OS

系统

string

Max length: 32

MOD

机型

string

Max length: 32

VER

版本

string

Max length: 32

IP

IP

string

Required

Max length: 32

MAC

mac

string

Max length: 32

UUID

设备id

string

Max length: 32

RADID

广告id

string

Max length: 32

RSID

子站点id

string

Max length: 32

StartTime

启动时间

integer

Required

ExtInfo

扩展信息

string

Max length: 2000

PID

合作商id

integer

None.

Sign

签名sign=md5(PID_APPID_OS_MOD_VER_MAC_UUID_RADID_RSID_StartTime_appkey) //appkey为合作商密钥 (上报人提供一下appid,web这边会给个appkey)

string

Required

Max length: 1024

Location

位置

string

Max length: 32

ConnType

网络连接

string

Max length: 32

Action

动作

string

Max length: 32

Imei1

安卓取imei

string

Max length: 64

Imei2

安卓取imei

string

Max length: 64

Idfa

苹果取Idfa

string

Max length: 64

IMEI_IDFA

IMEI_IDFA

string

None.

AppOnline

AppOnline

integer

None.

GameOnline

GameOnline

integer

None.

ActorID

角色id

integer

None.

android_id

android_id

string

None.

advertising_id

advertising_id

string

None.

Request Formats

application/json, text/json

Sample:
{
  "APPID": 1,
  "OS": "sample string 2",
  "MOD": "sample string 3",
  "VER": "sample string 4",
  "IP": "sample string 5",
  "MAC": "sample string 6",
  "UUID": "sample string 7",
  "RADID": "sample string 8",
  "RSID": "sample string 9",
  "StartTime": 10,
  "ExtInfo": "sample string 11",
  "PID": 12,
  "Sign": "sample string 13",
  "Location": "sample string 14",
  "ConnType": "sample string 15",
  "Action": "sample string 16",
  "Imei1": "sample string 17",
  "Imei2": "sample string 18",
  "Idfa": "sample string 19",
  "IMEI_IDFA": "sample string 20",
  "AppOnline": 21,
  "GameOnline": 22,
  "ActorID": 23,
  "android_id": "sample string 24",
  "advertising_id": "sample string 25"
}

application/xml, text/xml

Sample:
<AppStartLog xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SzGla.WebApps.AppDataAPI.Models">
  <APPID>1</APPID>
  <Action>sample string 16</Action>
  <ActorID>23</ActorID>
  <AppOnline>21</AppOnline>
  <ConnType>sample string 15</ConnType>
  <ExtInfo>sample string 11</ExtInfo>
  <GameOnline>22</GameOnline>
  <IMEI_IDFA>sample string 20</IMEI_IDFA>
  <IP>sample string 5</IP>
  <Idfa>sample string 19</Idfa>
  <Imei1>sample string 17</Imei1>
  <Imei2>sample string 18</Imei2>
  <Location>sample string 14</Location>
  <MAC>sample string 6</MAC>
  <MOD>sample string 3</MOD>
  <OS>sample string 2</OS>
  <PID>12</PID>
  <RADID>sample string 8</RADID>
  <RSID>sample string 9</RSID>
  <Sign>sample string 13</Sign>
  <StartTime>10</StartTime>
  <UUID>sample string 7</UUID>
  <VER>sample string 4</VER>
  <advertising_id>sample string 25</advertising_id>
  <android_id>sample string 24</android_id>
</AppStartLog>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AppStartLog'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.