GET Stats / Total Installs
Totals installs are returned as a count
Endpoint URL: https://api.carnivalmobile.com/v6/stats/total_installs
Parameters
Name | Type | Required | Definition |
---|---|---|---|
from | datetime | Beginning date for range | |
to | datetime | End date for range |
Examples
Copy
# Default parameters (Last Month)
curl -XGET -i -u :$API_KEY -H 'Accept: application/json' https://api.carnivalmobile.com/v6/stats/total_installs
# With Parameters for To and From
curl -XGET -i -u :$API_KEY -H 'Accept: application/json' https://api.carnivalmobile.com/v6/stats/total_installs?from=2015-07-25&to=2015-07-28
Result Format
200 OK
Copy
{
"total_installs": 593
}
Copy
{
"error":"unauthorized"}
403 Forbidden
Copy
{
"error":"your api client does not have the correct roles"}
Date Format
This API endpoint uses the ISO 8601 DateTime format. Examples:
2015-07-25
(Just date)2015-07-25T00:00:00.000+00:00
(Date, Time, Offset)
Caveats
The range granularity for this API is days. We round down from
to the beginning of day (00:00:00) and up to
to the end of day (23:59:59).
Note: When running the curl command with parameters, you should wrap the URL in double quotation mark.