GET Stats / Geography
Returns Countries, Time Zone and Locales
Endpoint URL:https://api.carnivalmobile.com/v6/stats/devices/geography
Examples
Copy
curl -X GET -u :$API_KEY -H 'Accept: application/json' https://api.carnivalmobile.com/v6/stats/devices/geography
Result Format
200 OK
Copy
{
"country": [
{
"term": "New Zealand",
"count": 17,
"percent": 85
},
{
"term": "United States",
"count": 3,
"percent": 15
}
],
"locale": [
{
"term": "en_US",
"count": 13,
"percent": 65
},
{
"term": "en_NZ",
"count": 7,
"percent": 35
}
],
"time_zone": [
{
"term": "Pacific/Auckland",
"count": 17,
"percent": 85
},
{
"term": "America/New_York",
"count": 3,
"percent": 15
}
]
}
Copy
{
"error":"unauthorized"}
403 Forbidden
Copy
{
"error":"your api client does not have the correct roles"}