You need to enable JavaScript to run this app.
最新活动
产品
解决方案
定价
合作与生态
支持与服务
开发者
了解我们
导航

PCContextKeysService

更新时间:2022.11.15 20:38:47

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

请求参数

Query

参数类型是否必选示例值描述
ActionStringPCContextKeys请求名称
VersionString2022-10-28请求版本

Body

参数类型是否必选示例值描述
app_idi3212345App ID
start_timei321656288235开始时间,单位为秒
end_timei321656288235结束时间,单位为秒
ev_typestring""崩溃类型,暂时只有pc_crash
keystringcontext_keycontext的key值
regionstringcn请求区域,默认cn

返回参数

参数类型示例值描述
dataarray of data[ { "name": "app_version", "description": "app版本", "displayTemplate": "Symbol" }]可用key列表
errmsgstring""错误信息,成功为空
errnoi32200错误码,成功为200

data

参数类型示例值描述
namestringkey1字段名
descriptionstring中文中文描述
displayTemplatestringSymbol筛选方式
  • 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"
            }
        ]
    }

    异常返回示例

    {
        "ResponseMetadata": {
            "RequestId": "201806041104200100100232280022D30",
            "Action": "PCContextKeys",
            "Version": "2022-10-28",
            "Service": "***",
            "Region": "cn-north-1",
            "Error": {
                "Code": "200000",
                "Message": "参数异常"
            }
        }
    }