Your votes on some playlists
const url = 'https://api.thebgdb.org/v1/account/playlist-votes?ids=7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.thebgdb.org/v1/account/playlist-votes?ids=7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21' \ --header 'Authorization: Bearer <token>'The member’s own votes on the playlists named, for a list of playlists from several games. Playlists the member has not voted on are left out. Never served from the shared cache.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Up to 50 playlist ids, separated by commas.
Example
7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21Responses
Section titled “Responses”The member’s votes.
object
object
Example
{ "data": [ { "playlistId": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21", "vote": "up" } ]}The request has no valid session token.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}Over a request limit. rate_limited: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). weekly_limit: the week’s requests or game details are used up (params.max is the cap). The retry-after header says how many seconds to wait: 60 for a minute’s limit, until midnight UTC for a day’s, until Monday 00:00 UTC for a week’s.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}