使用 API Python 显示来自 surveygizmo 调查的问题

Show question from surveygizmo survey using API Python

我正在使用 API 从 surveygizmo 获得一些回复。它有效,但它正在将问题更改为 [question(1)]、[question(2)]...


import surveygizmo as sg

client = sg.SurveyGizmo(
api_version='v4',
# example
api_token = "api_token",
api_token_secret = "api_token_secret."
)

survey_id = "survey_id"

responses = client.api.surveyresponse.list(survey_id)

pages = responses['total_pages']

data = []

responses

我得到了以下答案:

{'result_ok': True,
 'total_count': 5,
 'page': 1,
 'total_pages': 1,
 'results_per_page': 50,
 'data': [{'id': '1',
   'contact_id': '',
   'status': 'Complete',
   'is_test_data': '0',
   'datesubmitted': '2020-01-22 16:07:30',
   'SessionID': '1579727226_5e28b97a9ff992.53369554',
   'Language': 'Portuguese (Brazil)',
   'datestarted': '2020-01-22 16:07:30',
   'iLinkID': '9342723',
   'sResponseComment': '',
   'responseID': '1',
   '[question(2)]': 'Sim',
   '[question(3)]': 'Assunto',
   '[question(4)]': '8',

...

我需要按原样显示问题。这怎么可能?

我找到了答案。 api_version='v4' 有一些限制,问题文本附带 api_version='v5'.