|
整帐户下载服务 | 整帐户下载服务(Restful)
getAccountFileStatus
查询报告是否生成
请求方式:
POST(HTTPS)
请求地址:
SERVER_HOST/api/v2/accountdownload/getAccountFileStatus
请求参数体:
{
"body": {//
"accountFileId": ""//
},
"header": {
"adType": 1,
"agentpassword": "",
"agentusername": "",
"apiusertype": "",
"password": "xxxxxx",
"token": "xxxxxx",
"username": "xxxxxx"
}
}
|
响应结果:
{
"data": {//
"isGenerated": 0//
},
"desc": "success",
"failures": [],
"oprs": 1,
"oprtime": 1,
"quota": 1,
"rquota": 100,
"status": 0
}
|
getAccountFilePath
获取报告下载地址
请求方式:
POST(HTTPS)
请求地址:
SERVER_HOST/api/v2/accountdownload/getAccountFilePath
请求参数体:
{
"body": {//
"accountFileId": ""//
},
"header": {
"adType": 1,
"agentpassword": "",
"agentusername": "",
"apiusertype": "",
"password": "xxxxxx",
"token": "xxxxxx",
"username": "xxxxxx"
}
}
|
响应结果:
{
"data": {//
"accountFilePath": ""//
},
"desc": "success",
"failures": [],
"oprs": 1,
"oprtime": 1,
"quota": 1,
"rquota": 100,
"status": 0
}
|
getAccountFile
通过 AccountDownloadService ,您可以下载全部帐户信息或按计划下载帐户信息。您首先需要通过 getAccountFile() 方法获得一个字符串类型的 accountFileId ,然后通过 pull 的方式轮询调用 getAccountFileStatus() 方法检查报表是否产生。待产生后,则可调用 getAccountFilePath() 方法获取整帐户文件的下载地址。根据该地址即可下载您所需要的整帐户文件。 同报告 id 一样,整帐户文件 id 采用 <32 位 16 进制数 > 的取值形式。
获取整帐户或跨层级信息。
请求方式:
POST(HTTPS)
请求地址:
SERVER_HOST/api/v2/accountdownload/getAccountFile
请求参数体:
{
"body": {//
"cpcPlanIds": [],//
"includeTemp": false,//
"includeQuality": false,//
"format": 0,//
"opt": []//
},
"header": {
"adType": 1,
"agentpassword": "",
"agentusername": "",
"apiusertype": "",
"password": "xxxxxx",
"token": "xxxxxx",
"username": "xxxxxx"
}
}
|
响应结果:
{
"data": {//
"accountFileId": ""//
},
"desc": "success",
"failures": [],
"oprs": 1,
"oprtime": 1,
"quota": 1,
"rquota": 100,
"status": 0
}
|
|