F-Droid and Play-store publishings will be updated shortly.
2025-02-01 03247, 2025
RichardDegenne[m joined the channel
2025-02-01 03247, 2025
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/download/chatbrainz.org/hVMGWrDHAkCdxBfzJHtJXGZp>)
2025-02-01 03256, 2025
rustynova[m] joined the channel
2025-02-01 03257, 2025
rustynova[m]
Welcome to the API client club
2025-02-01 03248, 2025
rustynova[m]
If you need help with typings, I can help a bit as I'm maintaining the rust API client a bit
2025-02-01 03230, 2025
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 ^^
2025-02-01 03216, 2025
rustynova[m]
THERE'S SWAGGER DOCS!? WHERE!?
2025-02-01 03216, 2025
rustynova[m]
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
2025-02-01 03205, 2025
RichardDegenne[m
Given the docs, it seems that a JS client doesn't exist... Yet. ;)
2025-02-01 03257, 2025
rustynova[m]
Try seeing on NPM is there's anything?
2025-02-01 03246, 2025
rustynova[m]
Although if you need more info than LB provide, you may need to look into and MB library too
2025-02-01 03202, 2025
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.
2025-02-01 03248, 2025
rustynova[m]
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.
2025-02-01 03225, 2025
aereaux
I was looking at the code directly as it provides almost exactly what I would need: https://github.com/metabrainz/listenbrainz-server… . I don't really use typescript or react, so I don't really know where I'd start to use it externally
2025-02-01 03207, 2025
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