Like LEGO Batman would say - "First Try!" Kotlin api.acoustid.org/v2/ hello-world lookup

He says ‘First Try’ after trying and missing many times :slight_smile:

Whohoo! I was able to get some Kotlin working and use api.acoustid.org/v2/ to lookup a song!

I searched for and found code in GitHub that was very interwoven with the rest of the app. If anyone is looking for a more stand-alone version, maybe my code would be useful.

Note and Warning: My code isn’t optimized, hardened, or tested. I would think of it as a “Hello World” to get from File to JSON to Object to Artist/Album/TrackName. As such, I welcome any and all feedback.

(eg. it would be nicer to the server if I compressed the request, right?)

1 Like