Example Request

In this example, we are requesting a column chart comparing the number of active users using the different product editions in the last 60 days. For simplicity, we will be sending a GET request, and use cookie authentication. The following is the JSON query object that we should send:

{

    "productId": 2376158762,

    "startDate": "NOW-60",

    "stopDate": "NOW",

    "dateSplit": null,

    "clientStatus": [

        "active"

    ],

    "levels": {

        "level1": {

            "property": "prodEdition",

            "segments": [

                {

                    "type": "regex",

                    "value": ".*",

                    "split": true

                }

            ]

        }

    }

}

The following is how the request URL should look with URL encoding:

https://api.revulytics.com/reporting/generic/dateRange?query=%7B%22productId%22%3A2376158762%2C%22startDate%22%3A%22NOW-60%22%2C%22stopDate%22%3A%22NOW%22%2C%22dateSplit%22%3Anull%2C%22clientStatus%22%3A%5B%22active%22%5D%2C%22levels%22%3A%7B%22level1%22%3A%7B%22property%22%3A%22prodEdition%22%2C%22segments%22%3A%5B%7B%22type%22%3A%22regex%22%2C%22value%22%3A%22.*%22%2C%22split%22%3Atrue%7D%5D%7D%7D%7D&resultFormat=highcharts&hcType=column

The result should look similar to the following image:

Highcharts Example