【问题标题】:Where is respondent_id in Surveymonkey API v3?Surveymonkey API v3 中的 respondent_id 在哪里?
【发布时间】:2017-05-04 19:13:08
【问题描述】:

页面位于 https://help.surveymonkey.com/articles/en_US/kb/Transitioning-to-SurveyMonkey-s-v3-API

说那是什么

POST get_respondent_list

现在

GET /surveys/{id}/responses 或 GET /collectors/{id}/responses

但响应没有响应者 ID。

https://developer.surveymonkey.com/api/v3/?python#surveys-id-responses-bulk

他们在哪里?

【问题讨论】:

    标签: surveymonkey


    【解决方案1】:

    受访者 ID 在正文中仅标记为 idrespondent_id 在 API V3 中只是称为 response_id,没有响应和响应者的区别。

    例如在列表中:

    /v3/surveys/<survey_id>/responses
    {
      "per_page": 50,
      "total": 10,
      "data": [
        {
          "href": "...",
          "id": "<respondent_id>"
        },
        ...
      ]
    }
    

    或者在细节上,

    /v3/surveys/<survey_id>/responses/<respondent_id>
    {
      "id": "<respondent_id>",
      "collector_id": "<collector_id>",
      "survey_id": "<survey_id>",
      ...
    }
    

    【讨论】:

    • 谢谢 GK。我的 V2 思维模式对每个受访者的每个问题的每个响应都有不同的 response_id,因此在此期间我可以创建一个自动编号 ID。我注意到 ID 现在是 11 位长的字符串,例如 10764853680,远远超过 32 位整数大小。我一直在使用 Double 来存储它们,现在应该切换到 String。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-17
    • 1970-01-01
    相关资源
    最近更新 更多