diff options
author | kaniini <ariadne@dereferenced.org> | 2019-09-30 10:45:00 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-09-30 10:45:00 +0000 |
commit | ed176e74027d5a48247bafebc916932b931f56ab (patch) | |
tree | ea90c3aa50c91d3c92715a278f4aa938466e1317 /docs/api | |
parent | 90537f398160eddfb8033c1cdfe1acc21ee63c4a (diff) | |
parent | 1d7cbdaf7b2f3ff6576959ed26885d7545f31a14 (diff) | |
download | pleroma-ed176e74027d5a48247bafebc916932b931f56ab.tar.gz |
Merge branch 'feature/scrobbling' into 'develop'
media scrobbling ("now playing" API)
See merge request pleroma/pleroma!1732
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/pleroma_api.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/api/pleroma_api.md b/docs/api/pleroma_api.md index ac5489aa3..41889a0ef 100644 --- a/docs/api/pleroma_api.md +++ b/docs/api/pleroma_api.md @@ -439,3 +439,35 @@ The status posting endpoint takes an additional parameter, `in_reply_to_conversa * Params: None * Response: the archive of the pack with a 200 status code, 403 if the pack is not set as shared, 404 if the pack does not exist + +## `GET /api/v1/pleroma/accounts/:id/scrobbles` +### Requests a list of current and recent Listen activities for an account +* Method `GET` +* Authentication: not required +* Params: None +* Response: An array of media metadata entities. +* Example response: +```json +[ + { + "account": {...}, + "id": "1234", + "title": "Some Title", + "artist": "Some Artist", + "album": "Some Album", + "length": 180000, + "created_at": "2019-09-28T12:40:45.000Z" + } +] +``` + +## `POST /api/v1/pleroma/scrobble` +### Creates a new Listen activity for an account +* Method `POST` +* Authentication: required +* Params: + * `title`: the title of the media playing + * `album`: the album of the media playing [optional] + * `artist`: the artist of the media playing [optional] + * `length`: the length of the media playing [optional] +* Response: the newly created media metadata entity representing the Listen activity |