mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
30 lines
707 B
HTTP
30 lines
707 B
HTTP
### Music track
|
|
POST {{host}}/api/v1/users/me/consumption-records/2c1b0a9f-8e7d-4c6b-5a4f-3e2d1c0b9a8f/stop
|
|
Authorization: Bearer {{ACCESS_TOKEN}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"position": {
|
|
"kind": "TimeOffset",
|
|
"timeOffsetSeconds": 60,
|
|
"location": null
|
|
},
|
|
"progressFraction": 0.6,
|
|
"consumedDurationInSeconds": 60
|
|
}
|
|
|
|
### Book
|
|
POST {{host}}/api/v1/users/me/consumption-records/8f7e6d5c-4b3a-4928-8170-6f5e4d3c2b1a/stop
|
|
Authorization: Bearer {{ACCESS_TOKEN}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"position": {
|
|
"kind": "Location",
|
|
"timeOffsetSeconds": null,
|
|
"location": "epubcfi(/6/6[chapter-2]!/4/2/2)"
|
|
},
|
|
"progressFraction": 0.18,
|
|
"consumedDurationInSeconds": 300
|
|
}
|