You need to enable JavaScript to run this app.
导航

PCDownloadFile

最近更新时间2024.05.07 20:48:38

首次发布时间2023.11.24 16:46:34

调用PCDownloadFile下载日志。

请求说明

  • 请求方式:POST
  • 请求地址:/?Action=PCDownloadFile&Version=2022-10-28
ServiceName : apmplus_openapi
Region : cn-beijing
X-App-Ids : xxx
Content-Type : application/json

请求参数

Query

参数类型是否必选示例值描述
ActionStringPCDownloadFile接口名称。当前 API 的名称为 PCDownloadFile
VersionString2022-10-28接口版本。当前 API 的版本为 2022-10-28

Body

参数类型是否必选示例值描述
file_infosArray of DownloadFileInfo-日志文件详情。
regionStringcn地域。

DownloadFileInfo

参数类型是否必选示例值描述
file_urlStringfile/123456/txt/2023-11-23-09-12-01.log.zip日志文件路径。

log_type

String

txt

日志文件类型。

  • Native Crash:Native Crash
  • status:进程状态
  • event:自定义事件
  • txt:自定义日志

返回参数

参数类型示例值描述
errmsgString-错误信息。成功为空。
errnoLong200错误码。成功为0。
dataString-返回数据。

请求示例

POST /?Action=PCDownloadFile&Version=2022-10-28
{
    "file_infos": [
        {
            "file_url": "file/123456/txt/2023-11-23-09-12-01.log.zip",
            "log_type": "txt"
        }
    ],
    "region": "cn"
}

返回示例

{
    "data": "PK...."
}