01-24-2024, 12:44 AM
(01-24-2024, 12:25 AM)Nutul Wrote: Cool, but how did you get that json object from?
It's the example from the Github page, here: https://github.com/microlinkhq/spotify-url-info
I would try it myself, but I am not sure what the author means by the following:
In order to use the library, you have to provide the fetch agent to use:
const fetch = require('isomorphic-unfetch')
const { getData, getPreview, getTracks, getDetails } =
require('spotify-url-info')(fetch)
As I said, I am not a coder. I can write simple shell scripts and do other basic linux sysadmin/server tasks, but not actual coding.
I would guess that by "fetch agent" he means something like wget, but that's just a guess.