User Consumption Records
GET
http://124.71.184.180:9001/open-api/user_consumption_records
Request
Query Params
startTime
string
optional
Example:
2024-05-01 00:00:00
endTime
string
optional
Example:
2024-05-20 00:00:00
Header Params
X-Authorization-With
string
required
Example:
RiXhvDPYFZvjyKbvLqakYHiYywhIDqhF
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://124.71.184.180:9001/open-api/user_consumption_records?startTime=2024-05-01 00:00:00&endTime=2024-05-20 00:00:00' \
--header 'X-Authorization-With: RiXhvDPYFZvjyKbvLqakYHiYywhIDqhF'
Responses
🟢200Success
application/json
Body
code
integer
status code
msg
string
operation information
data
array [object {4}]
data
time
string
task submission time
file
string
file name
service
string
service name
price
number
price
total
number
total price
single_count
integer
single service times statistics
multi_count
integer
multi service times statistics
table_count
integer
table service times statistics
Example
{
"code": 200,
"msg": "Success",
"data": [
{
"time": "2024-05-20 16:04:43",
"file": "5.png",
"service": "TABLE",
"price": 0.1
},
{
"time": "2024-05-20 16:04:37",
"file": "4.png",
"service": "TABLE",
"price": 0.15
},
{
"time": "2024-05-20 16:04:29",
"file": "3.png",
"service": "SINGLE",
"price": 0.05
},
{
"time": "2024-05-20 16:04:23",
"file": "2.png",
"service": "SINGLE",
"price": 0.05
},
{
"time": "2024-05-20 16:04:18",
"file": "1.png",
"service": "TABLE",
"price": 1.5
},
{
"time": "2024-05-20 16:03:26",
"file": "5.png",
"service": "SINGLE",
"price": 0.05
},
{
"time": "2024-05-20 16:03:20",
"file": "4.png",
"service": "SINGLE",
"price": 0.05
},
{
"time": "2024-05-20 16:03:04",
"file": "3.png",
"service": "SINGLE",
"price": 0.05
},
{
"time": "2024-05-20 16:02:56",
"file": "2.png",
"service": "SINGLE",
"price": 0.05
},
{
"time": "2024-05-20 16:02:51",
"file": "1.png",
"service": "SINGLE",
"price": 0.05
},
{
"time": "2024-05-20 16:02:42",
"file": "5.png",
"service": "MULTI",
"price": 0.25
},
{
"time": "2024-05-20 16:02:26",
"file": "4.png",
"service": "TABLE",
"price": 1.6
},
{
"time": "2024-05-20 16:01:26",
"file": "3.png",
"service": "TABLE",
"price": 0.1
},
{
"time": "2024-05-20 16:01:21",
"file": "2.png",
"service": "TABLE",
"price": 0.1
},
{
"time": "2024-05-20 16:01:17",
"file": "1.png",
"service": "TABLE",
"price": 0.1
},
{
"time": "2024-05-20 16:01:09",
"file": "5.png",
"service": "TABLE",
"price": 0.5
},
{
"time": "2024-05-20 16:00:49",
"file": "4.png",
"service": "MULTI",
"price": 0.15
},
{
"time": "2024-05-20 16:00:37",
"file": "3.png",
"service": "MULTI",
"price": 0.15
},
{
"time": "2024-05-20 16:00:30",
"file": "2.png",
"service": "SINGLE",
"price": 0.05
},
{
"time": "2024-05-20 16:00:24",
"file": "1.png",
"service": "SINGLE",
"price": 0.05
}
],
"total": 5.15,
"single_count": 9,
"multi_count": 3,
"table_count": 8
}
🟠400Illegal request
🟠401Insufficient permissions
🟠402Invalid request
🟠403Request limits
🟠405Invalid user
🔴500Illegal parameter
Modified at 2024-05-27 03:07:10