Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Latest commit

 

History

History
48 lines (41 loc) · 861 Bytes

getHistory.md

File metadata and controls

48 lines (41 loc) · 861 Bytes

Get History

Returns the history list of previously played songs.

Code

API.getHistory();

Response

[
    {
        media: {
            author: "Sleep Party People",
            cid: "aFUzvbkEvRk",
            duration: 441,
            format: 1,
            id: "0",
            image: "//i.ytimg.com/vi/aFUzvbkEvRk/default.jpg",
            title: "I'm Not Human At All",
        },
        score: {
            grabs: 0,
            listeners: 47,
            negative: 0,
            positive: 11
        },
        user: {
            id: 80,
            username: '',
            avatarID: '',
            language: 'en',
            joined: undefined,
            level: 1,
            role: 0,
            gRole: 0,
            badge: undefined,
        }
    }
]

Endpoint

https://plug.dj/_/