Spicetify-stuff icon indicating copy to clipboard operation
Spicetify-stuff copied to clipboard

feat(WebAPI): use `GraphQL` and `CosmosAsync`

Open rxri opened this issue 1 year ago • 3 comments

Better version of https://github.com/daksh2k/Spicetify-stuff/commit/6edf2235f8b8ec514b27a10aca4607d38b2fbb87 CosmosAsync handles the token for api.spotify.com for ya on all versions, and the getArtistInfo can be fetched through GraphQL so the code looks better

rxri avatar Jun 05 '24 15:06 rxri

HI @rxri, I faced some issues before with CosmosAsync, that's why I was using fetch for web requests and Cosmos for others. But seems like that shouldn't be the case anymore, also had one doubt are web requests routed through the proxy or directly fetched from the URL?

daksh2k avatar Jun 05 '24 16:06 daksh2k

Requests to Spotify API and to spclient.wg are not routed via cors proxy

rxri avatar Jun 05 '24 16:06 rxri

Okay, sounds good, I'll test locally and merge if everything works well in some time. Thanks for the contribution.

daksh2k avatar Jun 05 '24 16:06 daksh2k