Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 1d2fb0c

Browse files
create get attribute info example
1 parent bbda790 commit 1d2fb0c

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
from dynata_rex import RespondentGateway
2+
gateway = RespondentGateway('rex_access_key', 'rex_secret_key')
3+
4+
attribute_id = 123 # Some-Number
5+
6+
gateway.get_attribute_info(attribute_id)
7+
8+
# {
9+
# "id": "unique-parameter-id",
10+
# "name": "Example Question Name",
11+
# "description": "Example Question Description",
12+
# "display_mode": "Single-Punch/Multi-Punch",
13+
# "parent_dependencies": [
14+
# {
15+
# "answer_ids": [
16+
# {
17+
# "id": "unique-answer-id"
18+
# }
19+
# ],
20+
# "parameter_id": "unique-parameter-id"
21+
# }
22+
# ],
23+
# "expiration_duration": "36000",
24+
# "is_active": "true/false",
25+
# "countries": [
26+
# {
27+
# "code": "country-code"
28+
# }
29+
# ],
30+
# "question": {
31+
# "text": "question-text",
32+
# "translations": [
33+
# {
34+
# "locale": "locale",
35+
# "text": "translation-text"
36+
# }
37+
# ]
38+
# },
39+
# "answers": [
40+
# {
41+
# "id": "unique-answer-id",
42+
# "text": "answer-text",
43+
# "countries": [
44+
# {
45+
# "code": "country-code"
46+
# }
47+
# ],
48+
# "translations": [
49+
# {
50+
# "locale": "locale",
51+
# "text": "translation-text"
52+
# }
53+
# ]
54+
# }
55+
# ]
56+
# }

0 commit comments

Comments
 (0)