最近更新时间:2023.12.26 19:24:26
首次发布时间:2022.11.15 20:38:47
调用PCContextKeysService接口查看Context包含的取值。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 |
| 请求名称。 |
Version | String | 是 |
| 请求版本。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
app_id | i32 | 是 |
| App ID。 |
start_time | i32 | 是 |
| 开始时间,单位为秒。 |
end_time | i32 | 是 |
| 结束时间,单位为秒。 |
ev_type | string | 否 |
| 崩溃类型,暂时只有pc_crash。 |
key | string | 否 |
| context的key值。 |
region | string | 否 |
| 请求区域,默认cn。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | array of data |
| 可用key列表。 |
errmsg | string |
| 错误信息,成功为空。 |
errno | i32 |
| 错误码,成功为200。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
name | string |
| 字段名。 |
description | string |
| 中文描述。 |
displayTemplate | string |
| 筛选方式。
|
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" } ] }
{ "ResponseMetadata": { "RequestId": "2018****22D30", "Action": "PCContextKeys", "Version": "2022-10-28", "Service": "***", "Region": "cn-north-1", "Error": { "Code": "200000", "Message": "参数异常" } } }