im using an API to get some responses from surveygizmo. It works, but it is changing the question to [question(1)], [question(2)]…
JavaScript
x
20
20
1
import surveygizmo as sg
2
3
client = sg.SurveyGizmo(
4
api_version='v4',
5
# example
6
api_token = "api_token",
7
api_token_secret = "api_token_secret."
8
)
9
10
survey_id = "survey_id"
11
12
responses = client.api.surveyresponse.list(survey_id)
13
14
pages = responses['total_pages']
15
16
data = []
17
18
responses
19
20
I got the following answer:
JavaScript
1
22
22
1
{'result_ok': True,
2
'total_count': 5,
3
'page': 1,
4
'total_pages': 1,
5
'results_per_page': 50,
6
'data': [{'id': '1',
7
'contact_id': '',
8
'status': 'Complete',
9
'is_test_data': '0',
10
'datesubmitted': '2020-01-22 16:07:30',
11
'SessionID': '1579727226_5e28b97a9ff992.53369554',
12
'Language': 'Portuguese (Brazil)',
13
'datestarted': '2020-01-22 16:07:30',
14
'iLinkID': '9342723',
15
'sResponseComment': '',
16
'responseID': '1',
17
'[question(2)]': 'Sim',
18
'[question(3)]': 'Assunto',
19
'[question(4)]': '8',
20
21
22
I need to show the question as it was made. How it is possible to do that?
Advertisement
Answer
I found the answer. api_version=’v4′ has some limitations, the question text came with api_version=’v5′.