1

有多个端点返回“ENUM”类型,例如:

我理解这意味着什么,但我没有看到任何地方记录的可能值。所以,重复一下标题:每个枚举的可能值是什么?

4

2 回答 2

3

我没有足够的声誉来发表评论,除了迈尔斯的回答之外,我还可以提供这个列表,将类型映射到关系数据库格式的 Qtype,因为我们正在从那里过渡。该列表映射到 SM 的 ResponseTable.html,但该文件没有给出 Qtype 160 或 70,我猜这是排名之一。

    Question Family Question Subtype    QType 
single_choice   vertical    10
    vertical_two_col    11
    vertical_three_col  12
    horiz   13
    menu    14
multiple_choice     vertical    20
    vertical_two_col    21
    vertical_three_col  22
    horiz   23
matrix  single  30
    multi   40
    menu    50
    rating  60
    ranking     
open_ended  numerical   80
    single  90
    multi   100
    essay   110
demographic     us  120
    international   130
datetime    date_only   140
    time_only   141
    both    142
presentation    image   
    video   
    descriptive_text    160
于 2014-01-29T09:44:18.127 回答
1

此处记录了 language_id、status 和 collection_mode 枚举:https ://developer.surveymonkey.com/mashery/data_types

来自端点String-ENUMtype字段:get_collector_list

收集器类型

url             Url Collector
embedded        Embedded Collector
email           Email Collector
facebook        Facebook Collector
audience        SM Audience Collector

来自端点String-ENUMcollection_modestatus字段:get_respondent_list

受访者收集模式

normal          Collected response online
manual          Admin entered response in settings
survey_preview  Collected response on a preview screen
edited          Collected via a edit to a previous response

受访者状态

completed   Finished answering the survey
partial     Started but did not finish answering the survey

和端点ENUM 整数language_id字段get_survey_listget_survey_details

语言 ID

1   English
2   Chinese(Simplified)
3   Chinese(Traditional)
4   Danish
5   Dutch
6   Finnish
7   French
8   German
9   Greek
10  Italian
11  Japanese
12  Korean
13  Malay
14  Norwegian
15  Polish
16  Portuguese(Iberian)
17  Portuguese(Brazilian)
18  Russian
19  Spanish
20  Swedish
21  Turkish
22  Ukrainian
23  Reverse
24  Albanian
25  Arabic
26  Armenian
27  Basque
28  Bengali
29  Bosnian
30  Bulgarian
31  Catalan
32  Croatian
33  Czech
34  Estonian
35  Filipino
36  Georgian
37  Hebrew
38  Hindi
39  Hungarian
40  Icelandic
41  Indonesian
42  Irish
43  Kurdish
44  Latvian
45  Lithuanian
46  Macedonian
47  Malayalam
48  Persian
49  Punjabi
50  Romanian
51  Serbian
52  Slovak
53  Slovenian
54  Swahili
55  Tamil
56  Telugu
57  Thai
58  Vietnamese
59  Welsh
于 2014-01-29T18:16:03.093 回答