Coding in PHP, I try to initialize Spotify API, without using redirect uri, just using client_id and client_secret. I try the code below : Extract token from response url - Spotify API but I get a NULL result
I wonder if If I can access token without asking user to login (cf. https://developer.spotify.com/web-api/authorization-guide/#authorization-code-flow)
Sure, you can use the Client Credentials flow. However, remember that in most endpoints doesn't make sense unless the access token is connected to a user. I believe the are PHP wrappers which helps you make the request to get the access token using this flow.