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

PCFileScene

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

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

调用PCFileScene获取日志上报场景。

请求说明

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

请求参数

Query

参数

类型

是否必选

示例值

描述

Action

String

PCFileScene

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

Version

String

2022-10-28

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

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

Body

参数

类型

是否必选

示例值

描述

app_id

Long

123456

App ID。

device_id

String

xxxxx

设备ID。

user_id

String

-

用户ID。

start_time

Long

1700621639

开始时间。

end_time

Long

1700708039

结束时间。

os

String

pc

系统。

region

String

cn

地域。

返回参数

参数

类型

示例值

描述

data

Array of String

-

返回数据。

error_msg

String

-

错误信息。成功为空。

error_no

Long

200

错误码。成功为0。

请求示例

POST ?Action=PCFileScene&Version=2022-10-28

{
    "app_id": 123456,
    "os": "pc",
    "region": "cn",
    "end_time": 1700729494,
    "start_time": 1700643094,
    "dimension": "log_type",
    "device_id": "xxxxxx"
}

返回示例

{
    "data": [
        "txt"
    ],
    "errmsg": "",
    "errno": 200
}