Post
/analytics/new_users
Returns info on new users over a given time period.
Note: The aggregation and grouping of the returned values is controlled by the optional time period given in `params`: - one day will return values per hour - up to 30 days returns values per day - greater than 30 days returns values per month - greater than a year returns values per year
Body parameters
object
apptoken
string Required
Your App token
from
string Required
Start date for the analytics query (YYYY-MM-DD)
to
string Required
End date for the analytics query (YYYY-MM-DD)
Responses
200
200
Grouped
{
"code": "200",
"data": {
"periods": {
"01-Feb": {
"amount": "10"
},
"02-Feb": {
"amount": "11"
},
"03-Feb": {
"amount": "56"
},
"04-Feb": {
"amount": "44"
},
"05-Feb": {
"amount": "38"
},
"06-Feb": {
"amount": "77"
},
"07-Feb": {
"amount": "68"
},
"08-Feb": {
"amount": "99"
},
"09-Feb": {
"amount": "45"
},
"10-Feb": {
"amount": "63"
},
"11-Feb": {
"amount": "23"
},
"12-Feb": {
"amount": "75"
},
"13-Feb": {
"amount": "44"
},
"14-Feb": {
"amount": "56"
},
"15-Feb": {
"amount": "78"
},
"16-Feb": {
"amount": "45"
},
"17-Feb": {
"amount": "54"
},
"18-Feb": {
"amount": "37"
},
"19-Feb": {
"amount": "41"
},
"20-Feb": {
"amount": "38"
},
"21-Feb": {
"amount": "42"
},
"22-Feb": {
"amount": "65"
},
"23-Feb": {
"amount": "83"
},
"24-Feb": {
"amount": "23"
},
"25-Feb": {
"amount": "88"
},
"26-Feb": {
"amount": "97"
},
"27-Feb": {
"amount": "104"
},
"28-Feb": {
"amount": "121"
}
}
},
"success": "True"
}Totals
{
"code": "200",
"data": {
"totals": {
"amount": "1015"
}
},
"success": "True"
}OneOf
Grouped
object (Grouped)
code
integer
Default0
Example200
data
object
periods
object
message
string
Example
success
boolean
Defaulttrue
ExampleTrue
Totals
object (Totals)
code
integer
Default0
Example200
data
object
totals
object
amount
string
Example1015
message
string
Example
success
boolean
Defaulttrue
ExampleTrue
400
400
Result
{
"success": "False",
"code": "400",
"message": "General error information",
"errors": [
{
"text": [
"Detailed information about the specific error"
]
}
]
}object
success
boolean
Defaulttrue
ExampleFalse
code
integer
Default0
Example400
message
string
ExampleGeneral error information
errors
Array of object
object
text
Array of string
string