Cobub Razor
Cobub Toaster
Other Links
Cobub Razor
Cobub Toaster
Other Links
這是本文檔舊的修訂版!
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”}
login
User login validation.
post
PREURL/api/login (PREURL is the prefix of Cobub Razor website, such as http://localhost/ums/index.php?, same as below)
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” }
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”:”用戶驗(yàn)證成功”, “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 Error | Database Error |
getproductlist
To obtain a list of accessible applications.
post
PREURL/api/getproductlist
The field names | Data types | Description | Required |
---|---|---|---|
sessionkey | String | the key after a successful login to validation | yes |
Sending JSON data instance:
{ “sessionkey”: “765E5A00B76FF4ECA098BB” }
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 | 說(shuō)明 |
---|---|---|
-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 |
getversionlist
According to the productid get all the version information of the product
post
PREURL/api/getversionlist
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″ }
Field name | Data type | Description | Required |
---|---|---|---|
flag | String | >0Success,The size of queryresult | yes |
msg | String | Prompt information | yes |
queryresult | JSONArray | Version List | no |
version | String | version name | yes |
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 |
getchannellist
According to the productid get all the channel information of the product
post
PREURL/api/getchannellist
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″ }
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":"機(jī)鋒市場(chǎng)" }, { "id": "2", "name":"安卓市場(chǎng)" } ] }
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 |
getbasicdata
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.
post
PREURL/api/getbasicdata
Field name | Data type | Description | Required |
---|---|---|---|
sessionkey | String | A key to validation after the login success | yes |
productid | String | Product ID | yes |
startdate | String | start date | yes |
enddate | String | end date | yes |
Sending JSON data instance:
{ “sessionkey”: “765E5A00B76FF4ECA098BB”, “productid”:”1″, “startdate”:”2013-1-1″, “enddate”:”2013-1-2″ }
Field name | Data type | Description | Required |
---|---|---|---|
flag | int | >0Success,The size of queryresult, | yes |
msg | String | Prompt information | yes |
queryresult | JSONArray | Version list | no |
date | String | date | yes |
sessions | String | session | yes |
activeusers | String | active user | yes |
newusers | String | new user | yes |
usingtime | String | using time | yes |
allusers | String | all users | yes |
upgradeusers | String | upgradeusers | yes |
Returns a JSON data instance:
Success:
{ “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 } ] }
error:
{ “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 |
getbasicdatabychannel
According to the productid start times of all channels under the specified time period, the new users, active users, and average use time, cumulative users, cumulative startup times.
post
PREURL/api/getbasicdatabychannel
Field name | Data type | Description | Required |
---|---|---|---|
sessionkey | String | A key to validation after the login success | y |
productid | String | product ID | y |
startdate | String | start date | y |
enddate | String | end date | y |
Sending JSON data instance:
{ “sessionkey”:”1341423432423″, “enddate”: “2013-4-2″, “productid”: “123″, “startdate”: “2013-4-1 }
Field name | Data type | Description | Required |
---|---|---|---|
flag | int | >0Success,The size of queryresult <0fail | y |
queryResult | JSONArray | The detailed information ,the size of queryresult | y |
datevalue | String | date | y |
sessions | String | sessions | y |
activeusers | String | activeusers | y |
newusers | String | newusers | y |
usingtime | String | usingtime | y |
allusers | String | allusers | y |
upgradeusers | String | upgradeusers | y |
Returns a JSON data instance:
Success:
{ “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" } ] } ] }
getbasicdatabyversion
According to the productid under specified period all versions of sessions, activeusers, activeusers, average usingtime, allusers, accumulated sessions.
post
PREURL/api/getbasicdatabyversion
Field name | Data type | Description | Required |
---|---|---|---|
sessionkey | String | A key to validation after the login success | y |
productid | String | productid | y |
startdate | String | startdate | y |
enddate | String | enddate | y |
Sending JSON data instance:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,且為queryResult的size<0失敗 | 是 |
queryResult | JSONArray | 詳細(xì)信息,queryresult為JSONArray對(duì)象flag對(duì)應(yīng)值:大于等于0為queryresult數(shù)組的長(zhǎng)度,包括version的數(shù)組 | 是 |
datevalue | String | 日期 | 是 |
activeusers | String | 活躍用戶數(shù) | 是 |
newusers | String | 新用戶數(shù) | 是 |
sessions | String | 啟動(dòng)次數(shù) | 是 |
upgradeusers | String | 升級(jí)用戶數(shù) | 是 |
allusers | String | 累計(jì)用戶數(shù) | 是 |
allsessions | String | 累計(jì)啟動(dòng)次數(shù) | 是 |
usingtime | String | 使用時(shí)長(zhǎng) | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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" } ] } ] }
getactiveratio
根據(jù)productid獲取最近一周/月的活躍用戶數(shù)和活躍率。
post
PREURL/api/getactiveratio
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
wusers | String | 周活躍用戶數(shù) | 是 |
musers | String | 月活躍用戶數(shù) | 是 |
wuserpercent | String | 周活躍用戶率 | 是 |
muserpercent | String | 月活躍用戶率 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “flag”: “1″, “wusers”: “100″, “musers”: “1029″, “wuserpercent”: “0.31″, “muserpercent”: “0.32″ }
getchannelactiveratio
根據(jù)productid獲取最近一周/月的活躍用戶數(shù)和活躍率。
post
PREURL/api/getchannelactiveratio
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | int | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
type | String | week/month | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-1-1″, “enddate”: “2013-4-1″, “type”: “week”, }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
datevalue | String | 日期 | 是 |
activeusers | String | 周活躍用戶/月活躍用戶數(shù) | |
rate | String | 周活躍率/月活躍率 | 是 |
channelid | String | 渠道ID | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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 } ] } ] }
getfrequency
根據(jù)productid獲取時(shí)間段內(nèi)的使用頻率。
post
PREURL/api/getfrequency
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
segment_sk | String | 頻率分布id | 是 |
segment_name | String | 頻率分布名稱 | 是 |
access | String | 訪問(wèn)次數(shù) | 是 |
percentage | String | 所占比例 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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 } ] }
getusingtime
根據(jù)productid獲取時(shí)間段內(nèi)的使用時(shí)長(zhǎng)分布。
post
PREURL/api/getusingtime
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
segment_sk | String | 頻率分布id | 是 |
segment_name | String | 頻率分布名稱 | 是 |
numbers | String | 使用次數(shù) | 是 |
percentage | String | 所占比例 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例: 成功返回:
{ “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 } ] }
getdatabyhour
根據(jù)productid獲取時(shí)間段內(nèi)的24小時(shí)的使用分布情況。
post
PREURL/api/getdatabyhour
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
segment_sk | String | 頻率分布id | 是 |
segment_name | String | 頻率分布名稱 | 是 |
numbers | String | 使用次數(shù) | 是 |
percentage | String | 所占比例 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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 } }
getpagedata
根據(jù)productid和version獲取時(shí)間段內(nèi)的頁(yè)面訪問(wèn)詳細(xì)。
post
PREURL/api/getpagedata
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
version | String | 版本號(hào),為空時(shí)指所有版本 | 否 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “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″, }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
activity | String | 頁(yè)面名稱 | 是 |
exitcount | String | 在activity退出次數(shù) | 是 |
count | String | 訪問(wèn)activity次數(shù) | 是 |
duration | String | 在activity中持續(xù)時(shí)長(zhǎng) | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “flag”: 1, “queryResult”: [ { "activity": "MainActivity", "exitcount": 3, "count": 33, "duration": 233 }, { "activity": "AboutActivity", "exitcount": 3, "count": 33, "duration": 233 } ] }
getcountry
根據(jù)productid獲取時(shí)間段內(nèi)獲取前N(由limit決定)國(guó)家的分布數(shù)據(jù)。
post
PREURL/api/getcountry
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
limit | String | Top N | 否 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “l(fā)imit”:”10″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
newusers | JSONArray | 新增用戶數(shù) | 是 |
activeusers | JSONArray | 活躍用戶數(shù) | 是 |
num | String | 使用次數(shù) | 是 |
country | String | 國(guó)家名稱 | 是 |
id | String | 序號(hào),倒排,num最大排在最前面 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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 } ] } ] }
getregion
根據(jù)productid和國(guó)家(country)獲取時(shí)間段內(nèi)獲取前N(由limit決定)省市的分布數(shù)據(jù)。
post
PREURL/api/getregion
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
country | String | 國(guó)家名稱,需與getcountry輸出的名稱一致 | 是 |
limit | String | Top N | 否 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “country”:”China”, “l(fā)imit”:”10″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
newusers | JSONArray | 新增用戶數(shù) | 是 |
activeusers | JSONArray | 活躍用戶數(shù) | 是 |
num | String | 使用次數(shù) | 是 |
province | String | 省市名稱 | 是 |
id | String | 序號(hào),倒排,num最大排在最前面 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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 } ] } ] }
getretention
根據(jù)productid獲取時(shí)間段內(nèi)的用戶留存。
post
PREURL/api/getretention
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
type | String | 月:month或周:week | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “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” }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | String | 是 | |
startdate | JSONArray | 時(shí)間段開始日期 | 是 |
enddate | String | 時(shí)間段結(jié)束日期 | 是 |
newusers | String | 新用戶數(shù) | 是 |
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 | 序號(hào) | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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%" } ] }
getdevicebrand
根據(jù)productid獲取時(shí)間段內(nèi)前N(由limit決定)位終端設(shè)備名稱數(shù)據(jù)分布。
post
PREURL/api/getdevicebrand
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日日期 | |
limit | String | Top N | 否 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “l(fā)imit”:”10″ } 或 { “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
newusers | JSONArray | 新用戶數(shù) | 是 |
activeusers | JSONArray | 活躍用戶數(shù) | 是 |
num | String | 使用次數(shù) | 是 |
brand | String | 設(shè)備名稱 | 是 |
id | String | 序號(hào),倒排 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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 } ] } ] }
getdeviceosversion
根據(jù)productid獲取時(shí)間段內(nèi)前N(由limit決定)位終端操作系統(tǒng)數(shù)據(jù)分布。
post
PREURL/api/getdeviceosversion
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
limit | String | Top N,此項(xiàng)省缺為所有數(shù)據(jù) | 否 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “l(fā)imit”:”10″ } 或 { “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
newusers | JSONArray | 新用戶數(shù) | 是 |
activeusers | JSONArray | 活躍用戶數(shù) | 是 |
num | String | 使用次數(shù) | 是 |
osversion | String | 設(shè)備操作系統(tǒng) | 是 |
id | String | 序號(hào),倒排 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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 } ] } ] }
getdeviceresolution
根據(jù)productid獲取時(shí)間段內(nèi)前N(由limit決定)位終端操作系統(tǒng)分辨率數(shù)據(jù)分布。
post
PREURL/api/getdeviceresolution
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
limit | String | Top N,此項(xiàng)省缺為所有數(shù)據(jù) | 否 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “l(fā)imit”:”10″ } 或 { “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
newusers | JSONArray | 新用戶數(shù) | 是 |
activeusers | JSONArray | 活躍用戶數(shù) | 是 |
num | String | 使用次數(shù) | 是 |
resolution | String | 操作系統(tǒng)分辨率 | 是 |
id | String | 序號(hào),倒排 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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 } ] } ] }
getdevicecarrier
根據(jù)productid獲取時(shí)間段內(nèi)前N(由limit決定)位終端使用運(yùn)營(yíng)商數(shù)據(jù)分布。
post
PREURL/api/getdevicecarrier
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
limit | String | Top N,此項(xiàng)省缺為所有數(shù)據(jù) | 否 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “l(fā)imit”:”10″ } 或 { “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
newusers | JSONArray | 新用戶數(shù) | 是 |
activeusers | JSONArray | 活躍用戶數(shù) | 是 |
num | String | 使用次數(shù) | 是 |
carrier | String | 運(yùn)營(yíng)商 | 是 |
id | String | 序號(hào),倒排 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “flag”: “2″, “queryResult”: [ { "newusers": [ { "id": "1", "carrier": "中國(guó)移動(dòng)", "num": 100 }, { "id": "2", "carrier": "中國(guó)聯(lián)通", "num": 23 }, { "id": "3", "carrier": "中國(guó)電信" "num": 32 } ], “activeusers”: [ { "id": "1", "carrier": "中國(guó)電信" "num": 343 }, { "id": "2", "carrier": "中國(guó)聯(lián)通" "num": 22 }, { "id": "3", "carrier": "中國(guó)移動(dòng)" "num": 1 } ] } ] }
getdevicenetwork
根據(jù)productid獲取時(shí)間段內(nèi)前N(由limit決定)位終端聯(lián)網(wǎng)方式的數(shù)據(jù)分布。
post
PREURL/api/getdevicenetwork
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
limit | String | Top N,此項(xiàng)省缺為所有數(shù)據(jù) | 否 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “l(fā)imit”:”10″ } 或 { “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
newusers | JSONArray | 新用戶數(shù) | 是 |
activeusers | JSONArray | 活躍用戶數(shù) | 是 |
num | String | 使用次數(shù) | 是 |
network | String | 聯(lián)網(wǎng)方式 | 是 |
id | String | 序號(hào),倒排 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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 } ] } ] }
geteventdata
根據(jù)productid獲取時(shí)間段內(nèi)事件的詳細(xì)數(shù)據(jù)。
post
PREURL/api/geteventdata
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
version | String | 版本,省缺為所有版本 | 否 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “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″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
eventid | JSONArray | 事件ID | 是 |
eventname | JSONArray | 事件名稱 | 是 |
num | String | 事件發(fā)生次數(shù) | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “flag”: “2″, “queryResult”: [ { "eventid": "1", "eventname": "clickbutton", "num": 100 }, { "eventid": "2", "eventname": "payment", "num": 23 }, { "eventid": "3", "eventname": "help", "num": 23 } ] }
geteventdetail
根據(jù)productid獲取時(shí)間段內(nèi)的某事件的數(shù)量等。
post
PREURL/api/geteventdetail
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
eventid | String | 事件ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
version | String | 版本,缺省為所有版本 | 否 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “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″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
id | String | 序號(hào) | 是 |
datevalue | String | 日期 | 是 |
num | String | 事件發(fā)生次數(shù) | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回: </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>
getconversionlist
根據(jù)productid獲取某時(shí)間段內(nèi)事件的轉(zhuǎn)化率列表數(shù)據(jù)。
post
PREURL/api/getconversionlist
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|
sessionkey |String |登錄成功后返回的驗(yàn)證key |是|
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
targetid | String | 目標(biāo)ID | 是 |
targetname | String | 目標(biāo)名稱 | 是 |
price | String | 目標(biāo)價(jià)值 | 是 |
startevent | String | 起始事件 | 是 |
endevent | String | 結(jié)束時(shí)間 | 是 |
conversion | String | 轉(zhuǎn)化率 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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 } ] }
getconversiondetail
根據(jù)productid獲取某時(shí)間段內(nèi)轉(zhuǎn)化率的詳細(xì)信息數(shù)據(jù)。
post
PREURL/api/getconversiondetail
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后返回的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
targetid | String | 目標(biāo)ID | 是 |
version | String | 版本,缺省為所有版本 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “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″, }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
id | String | 序號(hào) | 是 |
eventid | String | 目標(biāo)ID | 是 |
eventname | String | 目標(biāo)名稱 | 是 |
num | String | 目標(biāo)價(jià)值 | 是 |
conversion | String | 轉(zhuǎn)化率 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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 }, ] }
geterrorbyversion
根據(jù)productid獲取時(shí)間段內(nèi)的各版本的錯(cuò)誤數(shù)量等。
post
PREURL/api/geterrorbyversion
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }<code> ==== 1.26.4 返回結(jié)果 ==== ^字段名稱 ^數(shù)據(jù)類型 ^描述 ^是否必須^ |flag |int |標(biāo)識(shí),>0成功,<0失敗 |是| |queryResult |JSONArray | |是| |version |String | 日期 |是| |num |String |錯(cuò)誤數(shù)量 |是| 返回?cái)?shù)據(jù)JSON實(shí)例: 成功返回: <code> { “flag”: “2″, “queryResult”: [ { "version":"0.1", "num": "100" }, { "version":"0.2", "num": "100" } ] }<code> ===== 1.27 獲取錯(cuò)誤詳細(xì)信息(按版本) ===== geterrordetailbyversion ==== 1.27.1 功能說(shuō)明 ==== 根據(jù)productid獲取時(shí)間段內(nèi)的各版本的錯(cuò)誤詳細(xì)數(shù)據(jù)量等。 ==== 1.27.2 調(diào)用說(shuō)明 ==== === 1.27.2.1 調(diào)用方式 === post === 1.27.2.2 調(diào)用地址 === PREURL/api/geterrordetailbyversion ==== 1.27.3 參數(shù) ==== ^字段名稱 ^數(shù)據(jù)類型 ^描述 ^是否必須^ |sessionkey |String |登錄成功后的驗(yàn)證key |是| |productid |String |產(chǎn)品ID |是| |startdate |String | 開始日期 |是| |enddate |String |結(jié)束日期 |是| 發(fā)送數(shù)據(jù)JSON實(shí)例: <code> { “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
errorid | String | 錯(cuò)誤ID | 是 |
errortitle | String | 錯(cuò)誤名稱 | 是 |
version | String | 版本 | 是 |
lastdate | String | 最近發(fā)生日期 | 是 |
num | String | 錯(cuò)誤數(shù)量 | 是 |
isfix | String | 是否修復(fù) | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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", }, ] }
geterrordetaillistbyversion
根據(jù)productid獲取時(shí)間段內(nèi)的各版本的某一類型錯(cuò)誤的所有錯(cuò)誤記錄。
post
PREURL/api/geterrordetailbyversion
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
erroridentifier | String | MD5加密后 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “erroridentifier”:”AB876C09F98″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
datetime | String | 最近發(fā)生日日期 | 是 |
osversion | String | 版本 | 是 |
device | String | 設(shè)備 | 是 |
stacktrace | String | 錯(cuò)誤詳細(xì) | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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" } ] }
geterrordistributionbyversion
根據(jù)productid獲取時(shí)間段內(nèi)的各版本的某一類型錯(cuò)誤的所有錯(cuò)誤記錄。
post
PREURL/api/geterrordistributionbyversion
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
erroridentifier | String | MD5加密后 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “erroridentifier”:”AB876C09F98″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
osversiondis | JSONArray | 是 | |
devicedis | JSONArray | 是 | |
osversion | String | 操作系統(tǒng)版本 | |
device | String | 設(shè)備 | 是 |
num | String | 錯(cuò)誤數(shù)量 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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" } ] } ] }
geterrorbyosversion
根據(jù)productid獲取時(shí)間段內(nèi)的各操作系統(tǒng)版本的錯(cuò)誤數(shù)量等。
post
PREURL/api/geterrorbyosversion
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
osversion | String | 操作系統(tǒng)版本 | 是 |
num | String | 錯(cuò)誤數(shù)量 | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “flag”: “2″, “queryResult”: [ { "osversion":"4.0", "num": "100" }, { "osversion":"5.0", "num": "100" } ] }
geterrordetailbyosversion
明
根據(jù)productid獲取時(shí)間段內(nèi)的各操作系統(tǒng)版本的錯(cuò)誤詳細(xì)數(shù)量等。
post
PREURL/api/geterrordetailbyosversion
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
errorid | String | 錯(cuò)誤ID | 是 |
errortitle | String | 錯(cuò)誤標(biāo)題 | 是 |
osversion | String | 操作系統(tǒng)版本 | 是 |
lastdate | String | 最近發(fā)生日期 | 是 |
num | String | 錯(cuò)誤數(shù)量 | 是 |
isfix | String | 是否修復(fù) | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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", } ] }
geterrordetaillistbyosversion
根據(jù)productid獲取時(shí)間段內(nèi)的各版本的某一類型錯(cuò)誤的所有錯(cuò)誤記錄。
post
PREURL/api/geterrordetaillistbyosversion
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
erroridentifier | String | MD5加密后 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “erroridentifier”:”AB876C09F98″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
datetime | String | 最近發(fā)生日期 | 是 |
version | String | 版本 | 是 |
device | String | 設(shè)備 | 是 |
stacktrace | String | 錯(cuò)誤詳細(xì) | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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" } ] }
geterrordistributionbyversion
根據(jù)productid獲取時(shí)間段內(nèi)的各操作系統(tǒng)版本的某一類型錯(cuò)誤的所有錯(cuò)誤記錄。
post
PREURL/api/geterrordistributionbyversion
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
erroridentifier | String | MD5加密后 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “erroridentifier”:”AB876C09F98″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
versiondis | JSONArray | 是 | |
devicedis | JSONArray | 是 | |
version | String | 版本 | 是 |
device | String | 設(shè)備 | 是 |
num | String | 錯(cuò)誤數(shù)量 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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" } ] } ] }
geterrorbydevice
根據(jù)productid獲取時(shí)間段內(nèi)的各版本的錯(cuò)誤數(shù)量等。
式
post
PREURL/api/geterrorbydevice
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
device | String | 設(shè)備名稱 | 是 |
num | String | 錯(cuò)誤數(shù)量 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “flag”: “2″, “queryResult”: [ { "device":"HTC Desire", "num": "100" }, { "device":"Samsung T9100", "num": "100" } ] }
geterrordetailbydevice
根據(jù)productid獲取時(shí)間段內(nèi)的各版本的錯(cuò)誤詳細(xì)數(shù)量等。
post
PREURL/api/geterrordetailbydevice
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″ }
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
flag | int | 標(biāo)識(shí),>0成功,<0失敗 | 是 |
queryResult | JSONArray | 是 | |
errorid | String | 錯(cuò)誤ID | 是 |
errortitle | String | 錯(cuò)誤標(biāo)題 | 是 |
device | String | 設(shè)備名稱 | 是 |
lastdate | String | 最近發(fā)生日期 | 是 |
num | String | 錯(cuò)誤數(shù)量 | 是 |
isfix | String | 是否修復(fù) | 是 |
返回?cái)?shù)據(jù)JSON實(shí)例:
成功返回:
{ “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" }, ] }
geterrordetaillistbydevice
根據(jù)productid獲取時(shí)間段內(nèi)的各版本的某一類型錯(cuò)誤的所有錯(cuò)誤記錄。
post
PREURL/api/geterrordetaillistbydevice
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
erroridentifier | String | MD5加密后 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “erroridentifier”:”AB876C09F98″ }<code> ==== 1.36.4 返回結(jié)果 ==== ^字段名稱 ^數(shù)據(jù)類型 ^描述 ^是否必須^ |flag |int | 標(biāo)識(shí),>0成功,<0失敗 |是| |queryResult |JSONArray | |是| |datetime |String |最近發(fā)生日期 |是| |version |String |版本 |是| |osversion |String |操作系統(tǒng)版本 |是| |stacktrace |String |錯(cuò)誤詳細(xì) |是| 返回?cái)?shù)據(jù)JSON實(shí)例: 成功返回: <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" } ] }
geterrordistributionbydevice
根據(jù)productid獲取時(shí)間段內(nèi)的各版本和各操作系統(tǒng)版本的某一類型錯(cuò)誤的所有錯(cuò)誤記錄數(shù)。
post
PREURL/api/geterrordistributionbydevice
字段名稱 | 數(shù)據(jù)類型 | 描述 | 是否必須 |
---|---|---|---|
sessionkey | String | 登錄成功后的驗(yàn)證key | 是 |
productid | String | 產(chǎn)品ID | 是 |
startdate | String | 開始日期 | 是 |
enddate | String | 結(jié)束日期 | 是 |
erroridentifier | String | MD5加密后 | 是 |
發(fā)送數(shù)據(jù)JSON實(shí)例:
{ “sessionkey”:”1341423432423″, “productid”: “1″, “startdate”: “2013-4-1″, “enddate”: “2013-4-2″, “erroridentifier”:”AB876C09F98″ }
Field name | Data type | Description | Required |
---|---|---|---|
flag | int | >0success,<0failure | y |
queryResult | JSONArray | y | |
versiondistribution | JSONArray | y | |
osversiondistribution | JSONArray | y | |
version | String | Version | y |
osversion | String | OS version | y |
num | # error | y |
Returns a JSON data instance:
Success:
{ “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" } ] } ] }