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

Latest commit

 

History

History
47 lines (34 loc) · 727 Bytes

File metadata and controls

47 lines (34 loc) · 727 Bytes

votes Endpoint

The votes endpoint enables you to woot or meh the current media.

Endpoint

votes

Method

POST

Parameters

direction: Literally the direction of your vote and as such 1 is interpreted as woot and -1 as meh

historyID: Internal GUID v4 history ID of the current playback

{
    "direction": 1,
    "historyID": "xxxxxxxx-xxxx-4xxx-xxxxx-xxxxxxxxxxxx"
}

Possible error messages

Insufficient permissions (not being logged in)

{
    "data": [
        "You are not authorized to access this resource."
    ],
    "status": "notAuthorized",
}

Data returned

{
    'data': [],
    'meta': {},
    'status': 'ok',
    'time': 'xx.xxxxxxxxxxx'
}