thelinmichael / spotify-web-api-node

A Node.js wrapper for Spotify's Web API.
http://thelinmichael.github.io/spotify-web-api-node/
MIT License
3.1k stars 499 forks source link

spotifyApi.clientCredentialsGrant is not a function #257

Open SuperDuperKev opened 5 years ago

SuperDuperKev commented 5 years ago

https://github.com/thelinmichael/spotify-web-api-node/blob/37a78656198185776ca825b37e2de4a31c2ae5de/examples/get-top-tracks-for-artist.js#L23

kevinguebert commented 5 years ago

Can you share a bit more about the problem you faced? clientCredentialsGrant is definitely a function and the example seems to work well for me.

larryhudson commented 5 years ago

I was having the same issue, and I found an explanation here - the server methods in this file are only exposed when the library is being used from Node, not from the browser.

noodleybroodley commented 1 year ago

How do you call the server methods from Node? I'm pretty new to web development!

ClemMoreau commented 1 year ago

How do you call the server methods from Node? I'm pretty new to web development!

Check this