F-Droid and Play-store publishings will be updated shortly.
RichardDegenne[m joined the channel
RichardDegenne[m
A couple of weeks ago, I started working on a Ruby client for the API, and I'm proud to announce that the very first version was just released! 🥳... (full message at <https://matrix.chatbrainz.org/_matrix/media/v3/...>)
rustynova[m] joined the channel
rustynova[m]
Welcome to the API client club
If you need help with typings, I can help a bit as I'm maintaining the rust API client a bit
RichardDegenne[m
<rustynova[m]> "If you need help with typings, I..." <- Thanks! I'm using the Swagger docs combined with the results I get from my own data, and it's good enough for the time being ^^
rustynova[m]
THERE'S SWAGGER DOCS!? WHERE!?
I've been struggling with empirical results for a long time, and I think there might still have some missing fields or optional fields marked unoptional
Yeah, I know, I've accessed the API from python and rust. I'm wondering if there's a javascript library that will make it easier, especially getting all the info from MB like the UI does
RichardDegenne[m
Given the docs, it seems that a JS client doesn't exist... Yet. ;)
rustynova[m]
Try seeing on NPM is there's anything?
Although if you need more info than LB provide, you may need to look into and MB library too
RichardDegenne[m
There is one, but it hasn't been updated in 7 years :/
Although if you use JS, you can get away with *not* using a library. Just use axios and send the request, then use the API docs to get what you need.
If it was typescript, it would be harder to get type safety, but JS is just so permissive that I don't thing a library is really needed.
aereaux
I was looking at the code directly as it provides almost exactly what I would need: https://github.com/metabrainz/listenbrainz-serv... . I don't really use typescript or react, so I don't really know where I'd start to use it externally
rustynova[m]
That's the code for the "add release" ui. Not an API.
Yeah, I know, it's the code to add an album listen, and it does everything I want except for being able to easily select a side of a vinyl record. I'm just not sure how tightly coupled it is to the rest of the LB code