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

PCDownloadFile

最近更新时间2023.12.26 19:24:29

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

调用PCDownloadFile下载日志。

请求说明

  • 请求方式:POST
  • 请求地址:?Action=PCDownloadFile&Version=2022-10-28

请求参数

Query

参数

类型

是否必选

示例值

描述

Action

String

PCDownloadFile

接口名称。当前 API 的名称为 PCDownloadFile

Version

String

2022-10-28

接口版本。当前 API 的版本为 2022-10-28

ServiceName : apmplus_openapi
Region : cn-beijing 
X-App-Ids : xxx
Content-Type : application/json

Body

参数

类型

是否必选

示例值

描述

file_infos

Array of File_infos

-

日志文件详情。

region

String

cn

地域。

File_infos

参数

类型

是否必选

示例值

描述

file_url

String

file/123456/txt/2023-11-23-09-12-01.log.zip

日志文件路径。

log_type

String

txt

日志文件类型。

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

返回参数

参数

类型

示例值

描述

errmsg

String

-

错误信息。成功为空。

errno

Long

200

错误码。成功为0。

data

String

-

返回数据。

请求示例

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...."
}