Getting a List of Possible Property Values
This request is used in order to get a list of possible values for the selected property. This data is then used to build filters or segments as required.
Request/Response Parameters Summary
POST /meta/propertyValues
The request and response are both JSON objects. The following is a summary of the properties inside the request and response objects.
Property |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||
Request JSON Object |
If geography:
If os:
If gpu:
|
||||||||||||||||||||||||||||||||||||||||||||||||
Request Headers |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Response Headers |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Status Codes |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Response JSON Object |
|
Example Request
POST /meta/propertyValues HTTP/1.1
Host: api.revulytics.com
Content-Type: application/json
Accept: application/json
{
"user": "testuser@test.com",
"sessionId": "VSB8E2BzSC2eZSJm4QmTpA",
"productId": 12345678901,
"property": "os",
"granularity": "version"
}
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"status": "OK",
"results": [
{
"value": "Microsoft Windows XP",
"shortName": "MS Win XP"
},
{
"value": "Microsoft Windows Server 2003",
"shortName": "MS Win Srv 2003"
},
{
"value": "Microsoft Windows Vista",
"shortName": "MS Win Vista"
},
{
"value": "Microsoft Windows Server 2008",
"shortName": "MS Win Srv 2008"
},
{
"value": "Microsoft Windows 7",
"shortName": "MS Win 7"
}
]
}
When the list of property values is too long, the list will get truncated. This is especially common on requests related with custom properties. The filter property is a JSON object which should contain the following values:
• | type (string)—Can be either regex or string. Normally, regex should be used because string is to be used only to verify existence of a certain value. |
• | value (string)—A string normally containing a regular expression that defines the filter to be applied. |