getDemographicAttributes
This method was added in Cortex 2.1
Name | Type | Required | Description |
cortexToken | string | yes |
The result is an array of objects. Each object contain these fields:
Name | Type | Description |
name | string | The name of the demographic attribute. |
value | array of strings | The list of all the possible values for this attribute. |
Request
Response
{
"id": 1,
"jsonrpc": "2.0",
"method": "getDemographicAttributes",
"params": {
"cortexToken": "xxx"
}
}
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"name": "Education",
"value": [
"Below high school",
"High school or equivalent",
"Vocational/technical training",
"Bachelor's degree",
"Master's degree",
"Doctoral degree",
"Prof. degree (medical, law, etc. )"
]
},
{
"name": "Handedness",
"value": [
"Left",
"Right",
"Ambidextrous",
"Unspecified"
]
},
{
"name": "Language ability",
"value": [
"Native Language Only",
"Bilingual",
"Multilingual"
]
},
{
"name": "Musical skills",
"value": [
"None",
"Single instrumentalist",
"Multi-instrumentalist",
"Vocalist",
"Vocalist & instrumentalist"
]
},
{
"name": "Profession",
"value": [
"Architecture",
"Art and design",
"Entertainment and media",
"Sports",
"Building and grounds cleaning",
"Business and finance",
"Community and social service",
"Computer and mathematical",
"Construction and extraction",
"Engineering",
"Education and training",
"Farming, fishing, and forestry",
"Food preparation and serving",
"Healthcare practitioners",
"Healthcare technicians",
"Healthcare support",
"Installation and maintenance",
"Legal",
"Physical and social science",
"Management",
"Office and administration",
"Personal care and service",
"Production and manufacturing",
"Protective service",
"Sales",
"Transportation and logistics",
"Homemaker",
"Retired",
"Student",
"Unemployed"
]
}
]
}
Last modified 4yr ago