-
Notifications
You must be signed in to change notification settings - Fork 0
Metric API
Anh Nguyen edited this page Jan 17, 2020
·
2 revisions
Provides a set of APIs for metric purpose. These APIs are CORS ready and need to add a header field with following format for authentication.
API-Token: <secret token>
Returns number of users registered in a specific time range
GET /metrics/total-users?from=&to=
Name | Type | Description |
---|---|---|
from (optional) | int64 | Unix timestamp in second for started time. |
to (optional) | int64 | Unix timestamp in second for ended time. |
Example:
Request: GET /metrics/total-users?from=1578983286&to=1578988286
Response:
{
"result": {
"total": {
"android": 0,
"ios": 1
}
}
}