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

PCContextKeys

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

首次发布时间2022.11.15 20:38:47

调用PCContextKeys接口查看Context包含的取值。

请求说明

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

请求参数

Query

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

Body

参数类型是否必选示例值描述
app_idInteger12345App ID。
start_timeInteger1656288235开始时间,单位为秒。
end_timeInteger1656288235结束时间,单位为秒。
ev_typeString""崩溃类型,暂时只有pc_crash。
keyStringcontext_keycontext的key值。
regionStringcn请求区域,默认cn。

返回参数

参数类型示例值描述
dataArray of FieldKeysResp-可用key列表。
errmsgString""错误信息,成功为空。
errnoInteger200错误码,成功为200。

FieldKeysResp

参数类型示例值描述
nameStringkey1字段名。
descriptionString中文中文描述。

displayTemplate

String

Symbol

筛选方式。

  • Symbol
  • SimpleSymbol

请求示例

POST /?Action=PCContextKeys&Version=2022-10-28
{
    "app_id": 12345,
    "start_time": 1656288235,
    "end_time": 1656288235,
    "region": "cn",
    "key": "context_key",
    "ev_type": ""
}

返回示例

{
    "errno": 200,
    "errmsg": "",
    "data": [
        {
            "name": "app_version",
            "description": "app版本",
            "displayTemplate": "Symbol"
        }
    ]
}