Skip to content

Instantly share code, notes, and snippets.

@mineo
Last active September 29, 2015 10:30
Show Gist options
  • Save mineo/d3657cd61c0b821579de to your computer and use it in GitHub Desktop.
Save mineo/d3657cd61c0b821579de to your computer and use it in GitHub Desktop.
Submit this with something like
http POST "http://listenbrainz.org/1/submit-listens" "Authorization: Token $yourtokenhere" < listen.json
http is https://github.com/jkbrzt/httpie
listened_at are the seconds since epoch
listen_type can be single, import or playing_now, only import is allowed to contain more than one listen in the payload.
{
"payload": [
{
"listened_at": 1443521965,
"track_metadata": {
"additional_info": {
"release_mbid": "40e7c84f-309b-4d2e-b93c-c9d56f682665",
"artist_mbids": [
"66da25f9-1534-4dd1-b88c-718bc24e1ccd"
],
"recording_mbid": "927d451f-8501-4119-9882-c4b4189ca57f",
"tags": []
},
"artist_name": "Guano Apes",
"track_name": "You Can’t Stop Me",
"release_name": "Walking on a Thin Line"
}
}
],
"listen_type": "single"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment