Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/listenbrainz/listen.ts>ListenSubmission

Deno library and CLI to access the ListenBrainz API
Latest
type alias ListenSubmission
import { type ListenSubmission } from "https://deno.land/x/listenbrainz@v0.8.1/listen.ts";

Listening data which can be submitted to the ListenBrainz API.

There are some limitations on the size of a submission. A request must be less than MAX_LISTEN_PAYLOAD_SIZE bytes, and you can only submit up to MAX_LISTENS_PER_REQUEST listens per request. Each listen may not exceed MAX_LISTEN_SIZE bytes in size.

definition: { listen_type: "import"; payload: Listen[]; } | { listen_type: "single"; payload: [Listen]; } | { listen_type: "playing_now"; payload: [{ track_metadata: Track; }]; }