登录跳转入口
本文档提供跳转至腾讯问卷、或者嵌套腾讯问卷的入口。
注意:
- 该接口非后台请求接口,仅作为用户直接进入或者第三方登录问卷的入口;
- 请
避免
直接拼接如https://wj.qq.com/edit.html?tid=30
的页面进行嵌入,防止腾讯问卷的修改引起链接失效。- 该接口不需要传入 access_token
#
带第三方登录态的跳转引导用户点击或者直接 http 302 跳转至如下链接:
https://wj.qq.com/api/v2/redirect?appid={appid}&code={code}&action={action}
备注:接口会根据不同 action 会跳转到对应页面,code 来自于 获取一次性登录码 。
- 问卷编辑者视角
action | 功能 | 其它必要参数 | 示例 |
---|---|---|---|
my_surveys | 个人问卷列表页 | https://wj.qq.com/api/v2/redirect?action=my_surveys | |
org_surveys | 团队问卷列表页 | org_id (团队ID) | https://wj.qq.com/api/v2/redirect?action=org_surveys&org_id=60000208206 |
survey_create | 创建个人问卷 | https://wj.qq.com/api/v2/redirect?action=survey_create | |
org_survey_create | 创建团队问卷 | org_id (团队ID) | https://wj.qq.com/api/v2/redirect?action=org_survey_create&org_id=60000208206 |
survey_edit | 编辑问卷 | survey_id (问卷ID) | https://wj.qq.com/api/v2/redirect?action=survey_edit&survey_id=8068279 |
survey_setting | 问卷设置 | survey_id (问卷ID) | |
survey_overview | 统计结果 | survey_id (问卷ID) | |
survey_print | 打印问卷 | survey_id (问卷ID) | |
survey_skin | 问卷皮肤 | survey_id (问卷ID) | |
survey_dsl | 自定义逻辑编辑 | survey_id (问卷ID) | |
org_info | 团队信息 | org_id (团队ID) | |
org_contacts | 团队通讯录 | org_id (团队ID) | |
answer_detail | 回答内容详情 | survey_id (问卷ID) answer_id (答卷ID) | https://wj.qq.com/api/v2/redirect?action=answer_detail&survey_id=8068279&answer_id=1 |
exam_survey_create | 创建个人考试问卷 | https://wj.qq.com/api/v2/redirect?action=exam_survey_create | |
org_exam_survey_create | 创建团队考试问卷 | org_id (团队ID) | https://wj.qq.com/api/v2/redirect?action=org_exam_survey_create&org_id=60000208206 |
exam_survey_overview | 考试阅卷评分 | survey_id (问卷ID) | |
exam_survey_answers | 考试回收数据 | survey_id (问卷ID) |
- 问卷回答者视角
action | 功能 | 其它必要参数 | 示例 |
---|---|---|---|
survey_collect | 问卷填答页 | survey_id (问卷ID)、survey_hash (问卷哈希) | https://wj.qq.com/api/v2/redirect?action=survey_collect&survey_id=8068279&survey_hash=0418 |
#
直接跳转在进行了一次上述 带第三方登录态的跳转
后,浏览器已设置登录态,后续的跳转可以不传 code
参数,可以避免每个页面都进行获取一次性登录码的操作。