Get Surveys - GET /surveys - http://api.spectrumsurveys.com/suppliers/v2/surveys/:survey_id
...
Warning |
---|
Targeting for age and gender of child { "qualification_code" : 220 & 230 } will only appear in the criteria for the quota. It will not appear in the qualifications array. This is because that the survey may target for the people who have children as well as for people who don't have children in the same survey. If a survey is targeting for parents of a specific age and gender of a child , then a qualifications array will always contain qualification_code : 218 and condition_code:111112. The Age and gender of the child will appear as a nested quota for qualification_code : 218, 220 and 230. Please see examples below |
...
Warning |
---|
In case targeting is present on either age of child or gender of child, a nested quota will be present containing age of child, gender of child, and parent qualification codes. (218, 220, 230). |
HEADER Parameters
Parameter | Type | Required | Description |
---|---|---|---|
access-token | string | Yes | Token used to identify the authenticity of the user. |
...
Code Block |
---|
Example 1: quota is looking for parents of 1 year old boy. "quotas": [ { "quota_id": "c0013c3d-42e6-4a5f-9097-96c7eea4f155", "quantities": { "currently_open": 100, "remaining": 100, "achieved": 0 }, "criteria": [ { "qualification_code": 218, "condition_codes": [ "111112" ] }, { "qualification_code": 220, "condition_codes": [ "111" ] }, { "qualification_code": 230, "range_sets": [ { "units": 311, "to": 1, "from": 1 } ] } ], "crtd_on": 1505724120171, "mod_on": 1505724120171 } ] Example 2: quota is looking for people who are *not* parents "quotas": [ { "quota_id": "c0013c3d-42e6-4a5f-9097-96c7eea4f155", "quantities": { "currently_open": 100, "remaining": 100, "achieved": 0 }, "criteria": [ { "qualification_code": 218, "condition_codes": [ "112111" ] } ], "crtd_on": 1505724120171, "mod_on": 1505724120171 } ] Example 2: quota is looking for people who are parents of boy or girl 3 months - 18 months "quotas": [ { "quota_id": "c0013c3d-42e6-4a5f-9097-96c7eea4f155", "quantities": { "currently_open": 100, "remaining": 100, "achieved": 0 }, "criteria": [ { "qualification_code": 218, "condition_codes": [ "111112" ] }, { "qualification_code": 220, "condition_codes": [ "111", "112" ] }, { "qualification_code": 230, "range_sets": [ { "units": 312, "to": 18, "from": 3 } ] } ], "crtd_on": 1505724120171, "mod_on": 1505724120171 } ] Example 3: quota is looking for people who are parents of child 3 months - 18 months "quotas": [ { "quota_id": "c0013c3d-42e6-4a5f-9097-96c7eea4f155", "quantities": { "currently_open": 100, "remaining": 100, "achieved": 0 }, "criteria": [ { "qualification_code": 218, "condition_codes": [ "111112" ] }, { "qualification_code": 220, "condition_codes": [ "111" ] }, { "qualification_code": 230, "range_sets": [ { "units": 312, "to": 18, "from": 3 } ] } ], "crtd_on": 1505724120171, "mod_on": 1505724120171 } ] Example 4: quota is looking for people who are parents of a boy "quotas": [ { "quota_id": "c0013c3d-42e6-4a5f-9097-96c7eea4f155", "quantities": { "currently_open": 100, "remaining": 100, "achieved": 0 }, "criteria": [ { "qualification_code": 218, "condition_codes": [ "111112" ] }, { "qualification_code": 220, "condition_codes": [ "111" ] }, { "qualification_code": 230, "range_sets": [ { "units": 311, "to": 18, "from": 1 } ] } ], "crtd_on": 1505724120171, "mod_on": 1505724120171 } ] |
...