I want to get the current user's data from spotify.
The documentation says I have to use this command:
curl -X GET "https://api.spotify.com/v1/me" -H "Authorization: Bearer {your access token}"
I successfully get the token string from Spotify. My question is: How should I transform this CURL command to java?