java - Get user data from Spotify on Android -


i want current user's data spotify.

the documentation says have use command:

curl -x "https://api.spotify.com/v1/me" -h "authorization: bearer {your access token}"

i token string spotify. my question is: how should transform curl command java?

you need language bindings , http client. lot of work has been done in android client made kaaes.

in specific case, you'd use getme method documented here. returns userprivate object, contains birthdate, product, email, country, fields available in userpublic object, display_name.

full documentation


Comments

Popular posts from this blog

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -