X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=docs%2Fdocs%2Fdevelopment%2FAPI%2Fpleroma_api.md;h=a3494887876f0590905af4ed8ca8b9859291b06e;hb=a2b384d572b4777409f41ade74a466a5e12e5531;hp=1c4c959f02e9453b77ff75fd6de7ebc82fde8e06;hpb=cf0ad02ea961ae8cb6cc4f960afaeead58ecd4af;p=akkoma diff --git a/docs/docs/development/API/pleroma_api.md b/docs/docs/development/API/pleroma_api.md index 1c4c959f0..a34948878 100644 --- a/docs/docs/development/API/pleroma_api.md +++ b/docs/docs/development/API/pleroma_api.md @@ -576,38 +576,6 @@ The status posting endpoint takes an additional parameter, `in_reply_to_conversa * 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 - # Emoji Reactions Emoji reactions work a lot like favourites do. They make it possible to react to a post with a single emoji character. To detect the presence of this feature, you can check `pleroma_emoji_reactions` entry in the features list of nodeinfo.