Skip to main content
Version: latest

登录跳转入口

本文档提供跳转至腾讯问卷、或者嵌套腾讯问卷的入口。
注意:

  1. 该接口非后台请求接口,仅作为用户直接进入或者第三方登录问卷的入口;
  2. 避免直接拼接如https://wj.qq.com/edit.html?tid=30的页面进行嵌入,防止腾讯问卷的修改引起链接失效。
  3. 该接口不需要传入 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 参数,可以避免每个页面都进行获取一次性登录码的操作。