获取问卷自定义参数
接口概述
- 功能:获取问卷自定义参数
- 请求方式:GET
- 请求地址:/api/surveys/{survey_id}/custom_args?appid={appid}&access_token={access_token}
请求参数
参数名 | 类型 | 参数位置 | 描述 | 示例值 |
---|---|---|---|---|
survey_id | integer | uri | 问卷ID | 292192 |
响应参数
参数名 | 类型 | 描述 |
---|---|---|
total | integer | 总条数 |
list | array[object] | 自定义参数列表 |
list[_].id | string | 题目ID |
list[_].type | string | 类型 |
list[_].title | string | 名称 |
响应示例
- 请求成功
{
"code": "OK",
"error": {
"type": ""
},
"data": {
"list": [
{
"id": "custom-arg-01",
"type": "text",
"title": "userid"
}
],
"total": 1
},
"request_id": "95wDdTkltedIpenc20240521153738"
}
- 请求失败
{
"code": "InvalidArgument",
"error": {
"type": "invalid_argument",
},
"data": {},
"request_id": "ddec96d2-165e-4f3e-8a64-2057db116983"
}
错误码
error.type 错误代码 | 错误描述 |
---|---|
claim_error | 权限校验错误 |
survey_get_custom_args_validate | 参数校验不通过 |
survey_get_custom_args_failed | 获取自定义参数失败 |