91嫩草国内在线,韩国理论电影免费看,6969精品视频在线观看,1024在线视频精品免费,色中色污,饭冈佳奈子在线

用戶工具

站點工具


這是本文檔舊的修訂版!


目錄

Cobub Razor API Manual

1 API List

Interface Description
login User login validation
getproductlist To obtain a list of accessible applications
getversionlist To obtain a list all versions
getchannellist get all the channel list
getbasicdata To obtain basic data
getbasicdatabychannel To obtain basic data( by channel)
getbasicdatabyversion To obtain basic data( by version)
getactiveratio Get active rate in the latest week/month
getchannelactiveratio For each version this week/this month’s rate of active users and active
getfrequency Access to frequently used data
getusingtime Access to use length data
getdatabyhour Get data by hour
getpagedata Obtain the data of page access
getcountry Obtain geographical analysis data (state)
getregion Obtain geographical analysis data (province)
getretention Get the user data is retained
getdevicebrand Data acquisition terminal name
getdeviceosversion Data acquisition terminal operating system version
getdeviceresolution Data acquisition terminal resolution
getdevicecarrier Data acquisition terminal operators
getdevicenetwork Data acquisition terminal connected to the Internet way
geteventdata Access the event data
geteventdetail Detailed data for a single event
getconversionlist For the conversion list
getconversiondetail Conversion in detail information
geterrorbyversion Get error message (by version)
geterrordetailbyversion Get error detailed information(by version)
geterrordetaillistbyversion Access error detailed list (by version)
geterrordistributionbyversion Get error in the distribution of operating systems and devices (by version)
geterrorbyosversion Get error message(by os version)
geterrordetailbyosversion Get error detail infomation( by os version)
geterrordetaillistbyosversion Access error detailed list (by os version)
geterrordistributionbyversion To obtain the distribution of mistakes in the version and the equipment (by os version)
geterrorbydevice Get error message (by device)
geterrordetailbydevice Get error detail information (by device)
geterrordetaillistbydevice Access error detailed list(by device)
geterrordistributionbydevice Mistakes in the version and operating system version of the distribution(by device)

All OpenAPI based on HTTP and JSON, please make sure that JSON string in POST body with a content= prefix, like this:

POST Body: content={“user”:”userA”,”password”:”pwd”}

1.1 User authentication

login

1.1.1 Functional specifications

User login validation.

1.1.2 Call instructions

1.1.2.1 The request method

post

1.1.2.2 Address of the request

PREURL/api/login (PREURL is the prefix of Cobub Razor website, such as http://localhost/ums/index.php?, same as below)

1.1.3 parameters

The field names Data types Description Mandatory
username String cobub username yes
password String The md5 encrypted password yes

Sending JSON data instance:

{

“username”:”admin”,

“password”:”765E5A00B76FF4ECA098BB”

}

1.1.4 result

The field names Data types Description Mandatory
flag String >0 success,<0 failure yes
msg String Prompt information yes
sessionkey String Parameters when API calls yes

Returns a JSON data instance:

Success:

{

“flag”:”1″,

“msg”:”用戶驗證成功”,

“sessionkey”:”A7E76DD709C0B1A”

}

Failure:

{

“flag”:”-1″,

“msg”:”用戶名不存在”

}

Error types:

Flag Msg Description
-1 username not exists username not exists
-2 invalid password invalid password
-3 too many login attempts too many login attempts
-4 DB ErrorDatabase Error

1.2 To obtain a list of accessible applications

getproductlist

1.2.1 Functional specifications

To obtain a list of accessible applications.

1.2.2 Call instructions

1.2.2.1 The request method

post

1.2.2.2 Address of the request

PREURL/api/getproductlist

1.2.3 parameters

The field names Data types Description Required
sessionkey String the key after a successful login to validation yes

Sending JSON data instance:

{

“sessionkey”: “765E5A00B76FF4ECA098BB”

}

1.2.4 result

The field names Data types Description Required
flag String >0Success,The size of queryresult, <0fail yes
msg String Prompt information yes
sessionkey String Parameters when API calls yes

Returns a JSON data instance:

Success:

{

“flag”: “2″,

“queryresult”: [

{

"platform": "iOS",

"productid": "1",

"productname": "name1"

},

{

"platform": "Android",

"productid": "2",

"productname": "name2"

}

]

}

fail:

{

“flag”:”-1″,

“msg”:”用戶名不存在”

}

Error type definition:

Flag Msg 說明
-1 JSON format is not correct JSON format is not correct
-2 Sessionkey is invalide Sessionkey is invalide
-3 DB Error Database error
-4 Network error Network error

1.3 To obtain a list all versions

getversionlist

1.3.1 Functional specifications

According to the productid get all the version information of the product

1.3.2 Call instructions

1.3.2.1 The request method

post

1.3.2.2 Address of the request

PREURL/api/getversionlist

1.3.3 Parameters

Field name Data type Description Required
sessionkey String A key to validation after the login successyes
productid String productid yes

Sending JSON data instance:

{

“sessionkey”: “765E5A00B76FF4ECA098BB”,

“productid”:”1″

}

1.3.4 Results

Field name Data type Description Required
flag String >0Success,The size of queryresult yes
msg String Prompt information yes
queryresult JSONArray Version List no
versionString version nameyes

Returns a JSON data instance:

Success:

{

“flag”: “2″,

“queryResult”: [

{

"version": "0.1"

},

{

"version": "0.2"

}

]

}

fail:

{

“flag”:”-1″,

“msg”:”格式不正確”

}

Error type :

Flag Msg Description
-1 JSON format is not correct JSON format is not correct
-2 Sessionkey is invalid Sessionkey is invalid
-3 DB Error Database Error
-4 Network error Network error

1.4 Get all the channel list

getchannellist

1.4.1 Functional specifications

According to the productid get all the channel information of the product

1.4.2 Call instructions

1.4.2.1 The request method

post

1.4.2.2 Address of the request

PREURL/api/getchannellist

1.4.3 parameters

Field name Data type Description Required
sessionkey String A key to validation after the login success yes
productid String productid yes

Sending JSON data instance:

{

“sessionkey”: “765E5A00B76FF4ECA098BB”,

“productid”:”1″

}

1.4.4 Result

Field name Data type Description Required
flag String >0Success,The size of queryresult yes
msg String Prompt info yes
queryresult JSONArray Version列表 no
id String channel ID yes
name String channel Name yes

Returns a JSON data instance:

Success:

{

“flag”: “2″,

“queryResult”: [

{

"id": "1",

"name":"機鋒市場"

},

{

"id": "2",

"name":"安卓市場"

}

]

}

Success:

{

“flag”: “0″,

“queryResult”:””

}

fail:

{

“flag”:”-1″,

“msg”:”格式不正確”

}

Error type:

Flag Msg Description
-1 JSON format is not correct JSON format is not correct
-2 Sessionkey is invalide Sessionkey is invalide
-3 DB Error Database Error
-4 Network error Network error

1.5 To obtain basic data

getbasicdata

1.5.1 Functional specifications

According to the productid start times access to the product within a certain period of time, new users, active users, and average use time, upgrade user, user.

1.5.2 Call instructions

1.5.2.1 The request method

post

1.5.2.2 Address of the request

PREURL/api/getbasicdata

1.5.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”: “765E5A00B76FF4ECA098BB”,

“productid”:”1″,

“startdate”:”2013-1-1″,

“enddate”:”2013-1-2″

}

1.5.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,且為queryresult的size,<0失敗,=0表示0個版本,沒有queryresult
msg String 提示信息
queryresult JSONArray Version列表
date String 日期
sessions String 啟動次數
activeusers String 活躍用戶數
newusers String 新增用戶數
usingtime String 使用時長
allusers String 累計用戶數
upgradeusers String 升級用戶數

返回數據JSON實例:

成功返回:

{

“flag”: 2,

“queryResult”: [

{

"date":"2013-1-1",

"sessions": 10,

"activeusers": 10,

"newusers": 10,

"usingtime": 10,

"allusers": 10,

"upgradeusers": 10

},

{

"date":"2013-1-2",

"sessions": 10,

"activeusers": 10,

"newusers": 10,

"usingtime": 10,

"allusers": 10,

"upgradeusers": 10

}

]

}

錯誤返回:

{

“flag”:”-1″,

“msg”:”格式不正確”

}

錯誤類型定義:

Flag Msg 說明
-1 JSON format is not correct JSON數據格式錯誤
-2 Sessionkey is invalide Sessionkey無效
-3 DB Error 數據庫錯誤

1.6 獲取基礎數據(按渠道劃分)

getbasicdatabychannel

1.6.1 功能說明

根據productid在指定時間段下所有渠道下的啟動次數、活躍用戶數、新用戶數、平均使用時長、累計用戶數、累計啟動次數。

1.6.2 調用說明

1.6.2.1 請求方式

post

1.6.2.2 請求地址

PREURL/api/getbasicdatabychannel

1.6.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“enddate”: “2013-4-2″,

“productid”: “123″,

“startdate”: “2013-4-1

}

1.6.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,且為queryResult的size<0失敗
queryResult JSONArray 詳細信息,queryresult為JSONArray對象flag對應值:大于等于0為queryresult數組的長度,包括channelid的數組
datevalue String 日期
sessions String 啟動次數
activeusers String 活躍用戶數
newusers String 新用戶數
usingtime String 使用時長
allusers String 累計用戶數
upgradeusers String 升級用戶數

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"1": [

{

"datevalue": "20120101",

"activeusers": "10",

"newusers": "0",

"sessions": "10",

"upgradeusers": "10",

"allusers": "10",

"allsessions": "10",

"usingtime": "10"

},

{

"datevalue": "20120102",

"activeusers": "10",

"newusers": "0",

"sessions": "10",

"upgradeusers": "10",

"allusers": "10",

"allsessions": "10",

"usingtime": "10"

}

],

“2″: [

{

"datevalue": "20120101",

"activeusers": "10",

"newusers": "0",

"sessions": "10",

"upgradeusers": "10",

"allusers": "10",

"allsessions": "10",

"usingtime": "10"

},

{

"datevalue": "20120102",

"activeusers": "10",

"newusers": "0",

"sessions": "10",

"upgradeusers": "10",

"allusers": "10",

"allsessions": "10",

"usingtime": "10"

}

]

}

]

}

1.7 獲取基礎數據(按版本劃分)

getbasicdatabyversion

1.7.1 功能說明

根據productid在指定時間段下所有版本下的啟動次數、活躍用戶數、新用戶數、平均使用時長、累計用戶數、累計啟動次數。

1.7.2 調用說明

1.7.2.1 請求方式

post

1.7.2.2 請求地址

PREURL/api/getbasicdatabyversion

1.7.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.7.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,且為queryResult的size<0失敗
queryResult JSONArray 詳細信息,queryresult為JSONArray對象flag對應值:大于等于0為queryresult數組的長度,包括version的數組
datevalue String 日期
activeusers String 活躍用戶數
newusers String 新用戶數
sessions String 啟動次數
upgradeusers String 升級用戶數
allusers String 累計用戶數
allsessions String 累計啟動次數
usingtime String 使用時長

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"0.1": [

{

"datevalue": "20120101",

"activeusers": "10",

"newusers": "0",

"sessions": "10",

"upgradeusers": "10",

"allusers": "10",

"allsessions": "10",

"usingtime": "10"

},

{

"datevalue": "20120102",

"activeusers": "10",

"newusers": "0",

"sessions": "10",

"upgradeusers": "10",

"allusers": "10",

"allsessions": "10",

"usingtime": "10"

}

],

“0.2″: [

{

"datevalue": "20120101",

"activeusers": "10",

"newusers": "0",

"sessions": "10",

"upgradeusers": "10",

"allusers": "10",

"allsessions": "10",

"usingtime": "10"

},

{

"datevalue": "20120102",

"activeusers": "10",

"newusers": "0",

"sessions": "10",

"upgradeusers": "10",

"allusers": "10",

"allsessions": "10",

"usingtime": "10"

}

]

}

]

}

1.8 獲取最近一周/月的活躍率

getactiveratio

1.8.1 功能說明

根據productid獲取最近一周/月的活躍用戶數和活躍率。

1.8.2 調用說明

1.8.2.1 請求方式

post

1.8.2.2 請求地址

PREURL/api/getactiveratio

1.8.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″

}

1.8.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
wusers String 周活躍用戶數
musers String 月活躍用戶數
wuserpercent String 周活躍用戶率
muserpercent String 月活躍用戶率

返回數據JSON實例:

成功返回:

{

“flag”: “1″,

“wusers”: “100″,

“musers”: “1029″,

“wuserpercent”: “0.31″,

“muserpercent”: “0.32″

}

1.9 獲取各版本本周/本月活躍率

getchannelactiveratio

1.9.1 功能說明

根據productid獲取最近一周/月的活躍用戶數和活躍率。

1.9.2 調用說明

1.9.2.1 請求方式

post

1.9.2.2 請求地址

PREURL/api/getchannelactiveratio

1.9.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey int 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
type String week/month

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-1-1″,

“enddate”: “2013-4-1″,

“type”: “week”,

}

1.9.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
datevalue String 日期
activeusers String 周活躍用戶/月活躍用戶數
rate String 周活躍率/月活躍率
channelid String 渠道ID

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"1": [

{

"datevalue": "2013-1-1",

"activeusers": "100",

"rate": 0.03

},

{

"datevalue": "2013-1-8",

"activeusers": "100",

"rate": 0.02

},

{

"datevalue": "2013-1-15",

"activeusers": "100",

"rate": 0.03

}

],

“2″: [

{

"datevalue": "2013-1-1",

"activeusers": "100",

"rate": 0.03

},

{

"datevalue": "2013-1-8",

"activeusers": "100",

"rate": 0.03

},

{

"datevalue": "2013-1-15",

"activeusers": "100",

"rate": 0.03

}

]

}

]

}

1.10 獲取使用頻率數據

getfrequency

1.10.1 功能說明

根據productid獲取時間段內的使用頻率。

1.10.2 調用說明

1.10.2.1 請求方式

post

1.10.2.2 請求地址

PREURL/api/getfrequency

1.10.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.10.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
segment_sk String 頻率分布id
segment_name String 頻率分布名稱
access String 訪問次數
percentage String 所占比例

返回數據JSON實例:

成功返回:

{

“flag”: 6,

“queryResult”: [

{

"segment_sk": "1",

"segment_name": "1-2次",

"access": 17,

"percentage": 0.017

},

{

"segment_sk": "2",

"segment_name": "3-5次",

"access": 25,

"percentage": 0.025

},

{

"segment_sk": "3",

"segment_name": "6-9次",

"access": 38,

"percentage": 0.038

},

{

"segment_sk": "4",

"segment_name": "10-19次",

"access": 109,

"percentage": 0.109

},

{

"segment_sk": "5",

"segment_name": "20-49次",

"access": 307,

"percentage": 0.307

},

{

"segment_sk": "6",

"segment_name": "50次以上",

"access": 504,

"percentage": 0.504

}

]

}

1.11 獲取使用時長數據

getusingtime

1.11.1 功能說明

根據productid獲取時間段內的使用時長分布。

1.11.2 調用說明

1.11.2.1 請求方式

post

1.11.2.2 請求地址

PREURL/api/getusingtime

1.11.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.11.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
segment_sk String 頻率分布id
segment_name String 頻率分布名稱
numbers String 使用次數
percentage String 所占比例

返回數據JSON實例: 成功返回:

{

“flag”: 6,

“queryResult”: [

{

"segment_sk": 1,

"segment_name": "0-3",

"numbers": 3,

"percentage": 0.03

},

{

"segment_sk": 2,

"segment_name": "3-10",

"numbers": 11,

"percentage": 0.01

},

{

"segment_sk": 3,

"segment_name": "10-30",

"numbers": 40,

"percentage": 0.04

},

{

"segment_sk": 4,

"segment_name": "30-60",

"numbers": 110,

"percentage": 0.13

},

{

"segment_sk": 5,

"segment_name": "60-180",

"numbers": 379,

"percentage": 0.46

},

{

"segment_sk": 6,

"segment_name": "180",

"numbers": 279,

"percentage": 0.33

}

]

}

1.12 獲取小時的數據

getdatabyhour

1.12.1 功能說明

根據productid獲取時間段內的24小時的使用分布情況。

1.12.2 調用說明

1.12.2.1 請求方式

post

1.12.2.2 請求地址

PREURL/api/getdatabyhour

1.12.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.12.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
segment_sk String 頻率分布id
segment_name String 頻率分布名稱
numbers String 使用次數
percentage String 所占比例

返回數據JSON實例:

成功返回:

{

“flag”: 1,

“activeuser”: {

“1″: 30,

“2″: 20,

“3″: 33,

“4″: 33,

…

“23″: 2

},

“newuser”: {

“1″: 30,

“2″: 20,

“3″: 33,

“4″: 33,

…

“23″: 2

},

“sessions”: {

“1″: 30,

“2″: 20,

“3″: 33,

“4″: 33,

…

“23″: 2

}

}

1.13 獲取頁面訪問數據

getpagedata

1.13.1 功能說明

根據productid和version獲取時間段內的頁面訪問詳細。

1.13.2 調用說明

1.13.2.1 請求方式

post

1.13.2.2 請求地址

PREURL/api/getpagedata

1.13.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
version String 版本號,為空時指所有版本

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“version”:”0.1″

}

或

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

}

1.13.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
activity String 頁面名稱
exitcount String 在activity退出次數
count String 訪問activity次數
duration String 在activity中持續時長

返回數據JSON實例:

成功返回:

{

“flag”: 1,

“queryResult”: [

{

"activity": "MainActivity",

"exitcount": 3,

"count": 33,

"duration": 233

},

{

"activity": "AboutActivity",

"exitcount": 3,

"count": 33,

"duration": 233

}

]

}

1.14 獲取地域分析數據(國家)

getcountry

1.14.1 功能說明

根據productid獲取時間段內獲取前N(由limit決定)國家的分布數據。

1.14.2 調用說明

1.14.2.1 請求方式

post

1.14.2.2 請求地址

PREURL/api/getcountry

1.14.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
limit String Top N

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“limit”:”10″

}

1.14.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
newusers JSONArray 新增用戶數
activeusers JSONArray 活躍用戶數
num String 使用次數
country String 國家名稱
id String 序號,倒排,num最大排在最前面

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"newusers": [

{

"id": "1",

"country": "Bangladesh",

"num": 0

},

{

"id": "2",

"country": "China",

"num": 0

},

{

"id": "3",

"country": "",

"num": 0

}

],

“activeusers”: [

{

"id": "1",

"country": "British",

"num": 343

},

{

"id": "2",

"country": "China",

"num": 22

},

{

"id": "3",

"country": "Bangladesh",

"num": 1

}

]

}

]

}

1.15 獲取地域分析數據(省份)

getregion

1.15.1 功能說明

根據productid和國家(country)獲取時間段內獲取前N(由limit決定)省市的分布數據。

1.15.2 調用說明

1.15.2.1 請求方式

post

1.15.2.2 請求地址

PREURL/api/getregion

1.15.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
country String 國家名稱,需與getcountry輸出的名稱一致
limit String Top N

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“country”:”China”,

“limit”:”10″

}

1.15.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
newusers JSONArray 新增用戶數
activeusers JSONArray 活躍用戶數
num String 使用次數
province String 省市名稱
id String 序號,倒排,num最大排在最前面

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"newusers": [

{

"id": "1",

"province": "Jiangsu",

"num": 0

},

{

"id": "2",

"province": "Beijing",

"num": 0

},

{

"id": "3",

"province": "Sichuan",

"num": 0

}

],

“activeusers”: [

{

"id": "1",

"province": "Jiangsu",

"num": 343

},

{

"id": "2",

"province": "Beijing",

"num": 22

},

{

"id": "3",

"province": "Sichuan",

"num": 1

}

]

}

]

}

1.16 獲取用戶留存數據

getretention

1.16.1 功能說明

根據productid獲取時間段內的用戶留存。

1.16.2 調用說明

1.16.2.1 請求方式

post

1.16.2.2 請求地址

PREURL/api/getretention

1.16.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
type String 月:month或周:week

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“type”:”week”

}

或

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“type”:”month”

}

1.16.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult String
startdate JSONArray 時間段開始日期
enddate String 時間段結束日期
newusers String 新用戶數
1 String +1周/月
2 String +2周/月
3 String +3周/月
4 String +4周/月
5 String +5周/月
6 String +6周/月
7 String +7周/月
8 String +8周/月
id String 序號

返回數據JSON實例:

成功返回:

{

“flag”: 2,

“queryResult”: [

{

"id":"1",

"startdate": "2012-01-01",

"enddate": "2012-01-01",

"newusers": 232,

"1": "1%",

"2": "3%",

"3": "34%",

"4": "34%",

"5": "34%",

"6": "34%",

"7": "34%",

"8": "34%"

},

{

"id":"2",

"startdate": "2012-01-01",

"enddate": "2012-01-01",

"newusers": 232,

"1": "1%",

"2": "3%",

"3": "34%",

"4": "34%",

"5": "34%",

"6": "34%",

"7": "34%",

"8": "34%"

}

]

}

1.17 獲取終端名稱數據

getdevicebrand

1.17.1 功能說明

根據productid獲取時間段內前N(由limit決定)位終端設備名稱數據分布。

1.17.2 調用說明

1.17.2.1 請求方式

post

1.17.2.2 請求地址

PREURL/api/getdevicebrand

1.17.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日日期
limit String Top N

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“limit”:”10″

}

或

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.17.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
newusers JSONArray 新用戶數
activeusers JSONArray 活躍用戶數
num String 使用次數
brand String 設備名稱
id String 序號,倒排

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"newusers": [

{

"id": "1",

"name": "HTC Desire",

"num": 100

},

{

"id": "2",

"name": "HTC WildFire",

"num": 23

},

{

"id": "3",

"name": "Samsung T1000"

"num": 32

}

],

“activeusers”: [

{

"id": "1",

"name": "Samsung T100"

"num": 343

},

{

"id": "2",

"name": "HTC G8"

"num": 22

},

{

"id": "3",

"name": "HTC G10"

"num": 1

}

]

}


]

}

1.18 獲取終端操作系統數據

getdeviceosversion

1.18.1 功能說明

根據productid獲取時間段內前N(由limit決定)位終端操作系統數據分布。

1.18.2 調用說明

1.18.2.1 請求方式

post

1.18.2.2 請求地址

PREURL/api/getdeviceosversion

1.18.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
limit String Top N,此項省缺為所有數據

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“limit”:”10″

}

或

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.18.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
newusers JSONArray 新用戶數
activeusers JSONArray 活躍用戶數
num String 使用次數
osversion String 設備操作系統
id String 序號,倒排

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"newusers": [

{

"id": "1",

"osversion": "4.0",

"num": 100

},

{

"id": "2",

"osversion": "4.1",

"num": 23

},

{

"id": "3",

"osversion": "4.1.1",

"num": 32

}

],

“activeusers”: [

{

"id": "1",

"osversion": "4.1.1"

"num": 343

},

{

"id": "2",

"osversion": "4.1",

"num": 22

},

{

"id": "3",

"osversion": "4.0",

"num": 1

}

]

}

]

}

1.19 獲取終端分辨率數據

getdeviceresolution

1.19.1 功能說明

根據productid獲取時間段內前N(由limit決定)位終端操作系統分辨率數據分布。

1.19.2 調用說明

1.19.2.1 請求方式

post

1.19.2.2 請求地址

PREURL/api/getdeviceresolution

1.19.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
limit String Top N,此項省缺為所有數據

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“limit”:”10″

}

或

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.19.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
newusers JSONArray 新用戶數
activeusers JSONArray 活躍用戶數
num String 使用次數
resolution String 操作系統分辨率
idString 序號,倒排

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"newusers": [

{

"id": "1",

"resolution": "1280*800",

"num": 100

},

{

"id": "2",

"resolution": "480*800",

"num": 23

},

{

"id": "3",

"resolution": "480*820"

"num": 32

}

],

“activeusers”: [

{

"id": "1",

"resolution": "480*820"

"num": 343

},

{

"id": "2",

"resolution": "960*1024"

"num": 22

},

{

"id": "3",

"resolution": "320*480"

"num": 1

}

]

}

]

}

1.20 獲取終端運營商數據

getdevicecarrier

1.20.1 功能說明

根據productid獲取時間段內前N(由limit決定)位終端使用運營商數據分布。

1.20.2 調用說明

1.20.2.1 請求方式

post

1.20.2.2 請求地址

PREURL/api/getdevicecarrier

1.20.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
limit String Top N,此項省缺為所有數據

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“limit”:”10″

}

或

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.20.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
newusers JSONArray 新用戶數
activeusers JSONArray 活躍用戶數
num String 使用次數
carrier String 運營商
id String 序號,倒排

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"newusers": [

{

"id": "1",

"carrier": "中國移動",

"num": 100

},

{

"id": "2",

"carrier": "中國聯通",

"num": 23

},

{

"id": "3",

"carrier": "中國電信"

"num": 32

}

],

“activeusers”: [

{

"id": "1",

"carrier": "中國電信"

"num": 343

},

{

"id": "2",

"carrier": "中國聯通"

"num": 22

},

{

"id": "3",

"carrier": "中國移動"

"num": 1

}

]

}

]

}

1.21 獲取終端聯網方式數據

getdevicenetwork

1.21.1 功能說明

根據productid獲取時間段內前N(由limit決定)位終端聯網方式的數據分布。

1.21.2 調用說明

1.21.2.1 請求方式

post

1.21.2.2 請求地址

PREURL/api/getdevicenetwork

1.21.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
limit String Top N,此項省缺為所有數據

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“limit”:”10″

}

或

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.21.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
newusers JSONArray 新用戶數
activeusers JSONArray 活躍用戶數
num String 使用次數
network String 聯網方式
id String 序號,倒排

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"newusers": [

{

"id": "1",

"network": "WIFI",

"num": 100

},

{

"id": "2",

"network": "GPRS",

"num": 23

},

{

"id": "3",

"network": "3G"

"num": 32

}

],

“activeusers”: [

{

"id": "1",

"network": "WIFI",

"num": 343

},

{

"id": "2",

"network": "3G",

"num": 22

},

{

"id": "3",

"network": "GPRS",

"num": 1

}

]

}

]

}

1.22 獲取事件數據

geteventdata

1.22.1 功能說明

根據productid獲取時間段內事件的詳細數據。

1.22.2 調用說明

1.22.2.1 請求方式

post

1.22.2.2 請求地址

PREURL/api/geteventdata

1.22.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
version String 版本,省缺為所有版本

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“version”:”1.0″

}

或

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.22.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
eventid JSONArray 事件ID
eventname JSONArray 事件名稱
num String 事件發生次數

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"eventid": "1",

"eventname": "clickbutton",

"num": 100

},

{

"eventid": "2",

"eventname": "payment",

"num": 23

},

{

"eventid": "3",

"eventname": "help",

"num": 23

}

]

}

1.23 獲取單一事件詳細數據

geteventdetail

1.23.1 功能說明

根據productid獲取時間段內的某事件的數量等。

1.23.2 調用說明

1.23.2.1 請求方式

post

1.23.2.2 請求地址

PREURL/api/geteventdetail

1.23.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
eventid String 事件ID
startdate String 開始日期
enddate String 結束日期
version String 版本,缺省為所有版本

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“eventid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“version”:”1.0″

}

或

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“eventid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.23.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
id String 序號
datevalue String 日期
num String 事件發生次數

返回數據JSON實例:

成功返回: </code> {

“flag”: “3″,

“queryResult”: [

{

“id”: “1”,

“datevalue”: “2013-4-1”,

“num”: 100

},

{

“id”: “2”,

“datevalue”: “2013-4-2”,

“num”: 100

},

{

“id”: “3”,

“datevalue”: “2013-4-3”,

“num”: 100

},

]

}</code>

1.24 獲取轉化率列表

getconversionlist

1.24.1 功能說明

根據productid獲取某時間段內事件的轉化率列表數據。

1.24.2 調用說明

1.24.2.1 請求方式

post

1.24.2.2 請求地址

PREURL/api/getconversionlist

1.24.3 參數

字段名稱 數據類型 描述 是否必須

sessionkey |String |登錄成功后返回的驗證key |是|

productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

}

1.24.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
targetid String 目標ID
targetname String 目標名稱
price String 目標價值
startevent String 起始事件
endevent String 結束時間
conversion String 轉化率

返回數據JSON實例:

成功返回:

{

“flag”: “3″,

“queryResult”: [

{

"targetid": "1",

"targetname": "1",

"price": "2013-4-1",

"startevent": "menu_exit",

"endevent": "menu_login",

"conversion": 0.87

},

{

"targetid": "2",

"targetname": "1",

"price": "2013-4-1",

"startevent": "menu_exit",

"endevent": "click",

"conversion": 0.87

},

{

"targetid": "3",

"targetname": "1",

"price": "2013-4-1",

"startevent": "menu_exit",

"endevent": "click",

"conversion": 0.87

}

]

}

1.25 獲取轉化率詳細信息

getconversiondetail

1.25.1 功能說明

根據productid獲取某時間段內轉化率的詳細信息數據。

1.25.2 調用說明

1.25.2.1 請求方式

post

1.25.2.2 請求地址

PREURL/api/getconversiondetail

1.25.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后返回的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
targetid String 目標ID
version String 版本,缺省為所有版本

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“targetid”: “1″,

}

或

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“targetid”: “1″,

“version”: “0.1″,

}

1.25.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
id String 序號
eventid String 目標ID
eventname String 目標名稱
num String 目標價值
conversion String 轉化率

返回數據JSON實例:

成功返回:

{

“flag”: “3″,

“queryResult”: [

{

"id":"1",

"eventid": "click",

"eventname": "click事件",

"num": "100",

"conversion": 0.87

},

{

"id":"2",

"eventid": "exit",

"eventname": "退出",

"num": "20",

"conversion": 0.87

},

{

"id":"3",

"eventid": "quit",

"eventname": "退出",

"num": "23",

"conversion": 0.87

},

]

}

1.26 獲取錯誤信息(按版本)

geterrorbyversion

1.26.1 功能說明

根據productid獲取時間段內的各版本的錯誤數量等。

1.26.2 調用說明

1.26.2.1 調用方式

post

1.26.2.2 調用地址

PREURL/api/geterrorbyversion

1.26.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}<code>

==== 1.26.4    返回結果 ====
^字段名稱 ^數據類型 ^描述 ^是否必須^
|flag |int     |標識,>0成功,<0失敗	 |是|
|queryResult |JSONArray | |是|
|version |String            | 日期	 |是|
|num |String |錯誤數量 |是|

返回數據JSON實例:

成功返回:
<code>
{

“flag”: “2″,

“queryResult”: [

{

"version":"0.1",

"num": "100"

},

{

"version":"0.2",

"num": "100"

}

]

}<code>

===== 1.27    獲取錯誤詳細信息(按版本) =====


geterrordetailbyversion

==== 1.27.1    功能說明 ====



根據productid獲取時間段內的各版本的錯誤詳細數據量等。

==== 1.27.2    調用說明 ====


=== 1.27.2.1    調用方式 ===


post

=== 1.27.2.2    調用地址 ===


PREURL/api/geterrordetailbyversion

==== 1.27.3    參數 ====
^字段名稱 ^數據類型 ^描述 ^是否必須^
|sessionkey |String |登錄成功后的驗證key |是|
|productid |String |產品ID |是|
|startdate |String       | 開始日期	 |是|
|enddate |String |結束日期 |是|
發送數據JSON實例:
<code>
{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.27.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
errorid String 錯誤ID
errortitle String 錯誤名稱
version String 版本
lastdate String 最近發生日期
num String 錯誤數量
isfix String 是否修復

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"errorid":"1",

"errortitle":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"version":"0.1",

"lastdate":"2013-3-1",

"num": "10",

"isfix": "true",

},

{

"errorid":"2",

"errortitle":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"version":"0.3",

"lastdate":"2013-3-1",

"num": "103",

"isfix": "false",

},

]

}

1.28 獲取錯誤詳細列表(按版本)

geterrordetaillistbyversion

1.28.1 功能說明

根據productid獲取時間段內的各版本的某一類型錯誤的所有錯誤記錄。

1.28.2 調用說明

1.28.2.1 調用方式

post

1.28.2.2 調用地址

PREURL/api/geterrordetailbyversion

1.28.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
erroridentifier String MD5加密后

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“erroridentifier”:”AB876C09F98″

}

1.28.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
datetime String 最近發生日日期
osversion String 版本
device String 設備
stacktrace String 錯誤詳細

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"stacktrace":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"osversion":"5.0",

"datetime":"2013-3-1 23:00:00",

"device": "HTC Desire"

},

{

"stacktrace":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at      android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"osversion":"5.1",

"datetime":"2013-3-1 22:22:00",

"device": "HTC Desire"

}

]

}

1.29 獲取錯誤在操作系統和設備的分布情況(按版本)

geterrordistributionbyversion

1.29.1 功能說明

根據productid獲取時間段內的各版本的某一類型錯誤的所有錯誤記錄。

1.29.2 調用說明

1.29.2.1 調用方式

post

1.29.2.2 調用地址

PREURL/api/geterrordistributionbyversion

1.29.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
erroridentifier String MD5加密后

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“erroridentifier”:”AB876C09F98″

}

1.29.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
osversiondis JSONArray
devicedis JSONArray
osversion String 操作系統版本
device String 設備
num String 錯誤數量

返回數據JSON實例:

成功返回:

{

“flag”: “1″,

“queryResult”: [

{

"osversiondis": [

{

"osversion": "5.0",

"num": "98"

},

{

"osversion": "5.0",

"num": "98"

}

],

“devicedis”: [

{

"device": "HTC Desire",

"num": "32"

},

{

"device": "HTC Desire",

"num": "32"

}

]

}

]

}

1.30 獲取錯誤信息(按操作系統版本)

geterrorbyosversion

1.30.1 功能說明

根據productid獲取時間段內的各操作系統版本的錯誤數量等。

1.30.2 調用說明

1.30.2.1 調用方式

post

1.30.2.2 調用地址

PREURL/api/geterrorbyosversion

1.30.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.30.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
osversion String 操作系統版本
num String 錯誤數量

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"osversion":"4.0",

"num": "100"

},

{

"osversion":"5.0",

"num": "100"

}

]

}

1.31 獲取錯誤詳細信息(按操作系統版本)

geterrordetailbyosversion

1.31.1 功能說

根據productid獲取時間段內的各操作系統版本的錯誤詳細數量等。

1.31.2 調用說明

1.31.2.1 調用方式

post

1.31.2.2 調用地址

PREURL/api/geterrordetailbyosversion

1.31.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.31.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
errorid String 錯誤ID
errortitle String 錯誤標題
osversion String 操作系統版本
lastdate String 最近發生日期
num String 錯誤數量
isfix String 是否修復

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"errorid":"1",

"errortitle":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"osversion":"5.0",

"lastdate":"2013-3-1",

"num": "10",

"isfix": "true",

},

{

"errorid":"2",

"errortitle":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"osversion":"5.1",

"lastdate":"2013-3-1",

"num": "103",

"isfix": "false",

}

]

}

1.32 獲取錯誤詳細列表(按操作系統版本)

geterrordetaillistbyosversion

1.32.1 功能說明

根據productid獲取時間段內的各版本的某一類型錯誤的所有錯誤記錄。

1.32.2 調用說明

1.32.2.1 調用方式

post

1.32.2.2 調用地址

PREURL/api/geterrordetaillistbyosversion

1.32.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
erroridentifier String MD5加密后

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“erroridentifier”:”AB876C09F98″

}

1.32.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
datetime String 最近發生日期
version String 版本
device String設備
stacktrace String 錯誤詳細

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"stacktrace":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"version":"0.1",

"datetime":"2013-3-1 23:00:00",

"device": "HTC Desire"

},

{

"stacktrace":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"version":"0.1",

"datetime":"2013-3-1 22:22:00",

"device": "HTC Desire"

}

]

}

1.33 獲取錯誤在版本和設備的分布情況(按操作系統版本)

geterrordistributionbyversion

1.33.1 功能說明

根據productid獲取時間段內的各操作系統版本的某一類型錯誤的所有錯誤記錄。

1.33.2 調用說明

1.33.2.1 調用方式

post

1.33.2.2 調用地址

PREURL/api/geterrordistributionbyversion

1.33.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
erroridentifier String MD5加密后

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“erroridentifier”:”AB876C09F98″

}

1.33.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
versiondis JSONArray
devicedis JSONArray
version String 版本
device String 設備
num String 錯誤數量

返回數據JSON實例:

成功返回:

{

“flag”: “1″,

“queryResult”: [

{

"versiondis": [

{

"version": "0.1",

"num": "98"

},

{

"version": "0.2",

"num": "98"

}

],

“devicedis”: [

{

"device": "HTC Desire",

"num": "32"

},

{

"device": "HTC Desire",

"num": "32"

}

]

}

]

}

1.34 獲取錯誤信息(按設備)

geterrorbydevice

1.34.1 功能說明

根據productid獲取時間段內的各版本的錯誤數量等。

1.34.2 調用說明

1.34.2.1 調用方

post

1.34.2.2 調用地址

PREURL/api/geterrorbydevice

1.34.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.34.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
device String 設備名稱
num String 錯誤數量

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"device":"HTC Desire",

"num": "100"

},

{

"device":"Samsung T9100",

"num": "100"

}

]

}

1.35 獲取錯誤詳細信息(按設備)

geterrordetailbydevice

1.35.1 功能說明

根據productid獲取時間段內的各版本的錯誤詳細數量等。

1.35.2 調用說明

1.35.2.1 調用方式

post

1.35.2.2 調用地址

PREURL/api/geterrordetailbydevice

1.35.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″

}

1.35.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
errorid String 錯誤ID
errortitle String 錯誤標題
device String 設備名稱
lastdate String 最近發生日期
num String 錯誤數量
isfix String 是否修復

返回數據JSON實例:

成功返回:

{

“flag”: “2″,

“queryResult”: [

{

"errorid":"1",

"errortitle":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"device":"HTC Desire",

"lastdate":"2013-3-1",

"num": "10",

"isfix": "true"

},

{

"errorid":"2",

"errortitle":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"device":"Samsung T9100",

"lastdate":"2013-3-1",

"isfix": "false"

},

]

}

1.36 獲取錯誤詳細列表(按設備)

geterrordetaillistbydevice

1.36.1 功能說明

根據productid獲取時間段內的各版本的某一類型錯誤的所有錯誤記錄。

1.36.2 調用說明

1.36.2.1 調用方式

post

1.36.2.2 調用地址

PREURL/api/geterrordetaillistbydevice

1.36.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
erroridentifier String MD5加密后

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“erroridentifier”:”AB876C09F98″

}<code>

==== 1.36.4    返回結果 ====

^字段名稱 ^數據類型 ^描述 ^是否必須^
|flag |int   |  標識,>0成功,<0失敗	 |是|
|queryResult |JSONArray | |是|
|datetime |String |最近發生日期 |是|
|version |String |版本 |是|
|osversion |String |操作系統版本 |是|
|stacktrace |String |錯誤詳細 |是|
返回數據JSON實例:

成功返回:
<code>
{

“flag”: “2″,

“queryResult”: [

{

"stacktrace":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"version":"0.1",

"datetime":"2013-3-1 23:00:00",

"osversion": "5.0"

},

{

"stacktrace":"java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)",

"version":"0.1",

"datetime":"2013-3-1 22:22:00",

"osversion": "5.1"

}

]

}

1.37 獲取錯誤在版本和操作系版本的分布情況(按設備)

geterrordistributionbydevice

1.37.1 功能說明

根據productid獲取時間段內的各版本和各操作系統版本的某一類型錯誤的所有錯誤記錄數。

1.37.2 調用說明

1.37.2.1 調用方式

post

1.37.2.2 調用地址

PREURL/api/geterrordistributionbydevice

1.37.3 參數

字段名稱 數據類型 描述 是否必須
sessionkey String 登錄成功后的驗證key
productid String 產品ID
startdate String 開始日期
enddate String 結束日期
erroridentifier String MD5加密后

發送數據JSON實例:

{

“sessionkey”:”1341423432423″,

“productid”: “1″,

“startdate”: “2013-4-1″,

“enddate”: “2013-4-2″,

“erroridentifier”:”AB876C09F98″

}

1.37.4 返回結果

字段名稱 數據類型 描述 是否必須
flag int 標識,>0成功,<0失敗
queryResult JSONArray
versiondistribution JSONArray
osversiondistribution JSONArray
version String 版本
osversion String 操作系統版本
num 錯誤數量

返回數據JSON實例:

成功返回:

{

“flag”: “1″,

“queryResult”: [

{

"versiondistribution": [

{

"version": "0.1",

"num": "98"

},

{

"version": "0.2",

"num": "98"

}

],

“osversiondistribution”: [

{

"osversion": "5.0",

"num": "32"

},

{

"osversion": "5.1",

"num": "32"

}

]

}

]

}
en/razor/cobub-razor-api-manual.1426762722.txt.gz · 最后更改: 2017/07/14 11:12 (外部編輯)