Statistics devices
Query parameters
StartDatestring · date-timeOptionalExample:
The end date to filter the statistics. The format is "yyyy-MM-dd HH:mm:ss".
2024-02-23 00:00:00
EndDatestring · date-timeOptionalExample:
The end date to filter the statistics. The format is "yyyy-MM-dd HH:mm:ss".
2024-02-23 23:59:59
TypeResponsestringOptional
The type of response. This value can be "MONTH" or "DATE".
Header parameters
Brand-URLstringRequiredExample:
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-KeystringRequiredExample:
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
Responses
200
The request was successful.
application/json
403
The user's access was denied.
application/json
429
The user has exceeded the rate limit.
application/json
get
GET /api/v1/devices/statistics HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Accept: */*
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": [
{
"date": "2024-02-17T00:00:00",
"quantity": 10
},
{
"date": "2024-02-18T00:00:00",
"quantity": 30
},
{
"date": "2024-02-19T00:00:00",
"quantity": 15
},
{
"date": "2024-02-20T00:00:00",
"quantity": 20
},
{
"date": "2024-02-21T00:00:00",
"quantity": 25
},
{
"date": "2024-02-22T00:00:00",
"quantity": 35
},
{
"date": "2024-02-23T00:00:00",
"quantity": 40
}
],
"errors": []
}
Last updated
Was this helpful?