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

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -