I’m using the spotify api and for some reason their session class blocks to store own data in $_SESSION. As a workaround I wrote a class ‘SystemHelper’: namespace App; It is possible now to store data in $_SESSION but the problem is that as long as I’m logged in with my account (own login form, not spotfiy account), everybody else
Tag: spotify
Extract token from response url – Spotify API
I’m using this code to get a token from Spotify’s Web API: That results in this showing up in the browser: Great! But how do I extract “{token}” from the response and use it as a parameter in a request to the API? For example in the request to https://api.spotify.com/v1/users/{user_id}/playlists which needs the token in the header field. Thanks! Answer