Cortex API
  • Getting Started
  • Connecting to the Cortex API
  • Overview of API flow
  • Authentication
    • getCortexInfo
    • getUserLogin
    • requestAccess
    • hasAccessRight
    • authorize
    • generateNewToken
    • getUserInformation
    • getLicenseInfo
  • Headsets
    • controlDevice
    • queryHeadsets
    • updateHeadset
    • updateHeadsetCustomInfo
    • syncWithHeadsetClock
    • Headset object
  • Sessions
    • createSession
    • updateSession
    • querySessions
    • Session object
  • Data Subscription
    • subscribe
    • unsubscribe
    • Data sample object
  • Records
    • createRecord
    • stopRecord
    • updateRecord
    • deleteRecord
    • exportRecord
    • queryRecords
    • getRecordInfos
    • configOptOut
    • requestToDownloadRecordData
    • Record object
  • Markers
    • injectMarker
    • updateMarker
    • Marker object
  • Subjects
    • createSubject
    • updateSubject
    • deleteSubjects
    • querySubjects
    • getDemographicAttributes
    • Subject object
  • BCI
    • queryProfile
    • getCurrentProfile
    • setupProfile
    • loadGuestProfile
    • getDetectionInfo
    • training
    • Readonly profile
  • Advanced BCI
    • getTrainedSignatureActions
    • getTrainingTime
    • facialExpressionSignatureType
    • facialExpressionThreshold
    • mentalCommandActiveAction
    • mentalCommandBrainMap
    • mentalCommandGetSkillRating
    • mentalCommandTrainingThreshold
    • mentalCommandActionSensitivity
  • Warning Objects
  • Error Codes
  • Troubleshooting Guide
  • Release Notes
  • cortexaccess tool
Powered by GitBook
On this page
  • Parameters
  • Result
  • Example
  1. Subjects

getDemographicAttributes

PreviousquerySubjectsNextSubject object

Last updated 5 years ago

This method returns the list of valid names and values for the .

This method was added in Cortex 2.1

Parameters

Name

Type

Required

Description

cortexToken

string

yes

Result

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.

Example

{
    "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"
        ]
    }
    ]
}

A token returned by .

authorize
demographic attribute objects