2
votes

I'm building an app with the lastest Spotify SDK, it's working fine but now i want to get LoginUser's metadata as displayName, birthday and country, also want to get Track's metadata as Artist, SongName, Album, YearFromAlbum(if its possible), I can only get track's URI, duration, playing?, shuffle?, repeat?

I also followed this tutorial and read a lot from: developer.spotify.com/android-sdk-docs/index.html?com/spotify/sdk/android/ but nothing.

Thanks for your help and time. Regards.

PS: I'm Loggin in through WebView

2

2 Answers

4
votes

The Spotify SDK does not currently have functions for metadata lookup or playlist management, for that you need to use Spotify Web API

You can call directly the API or use a wrapper like this Spotify Web API for Android

2
votes

To get Track's metadata as Artist, SongName, Album, YearFromAlbum

you will want to use the web-api documented here : https://developer.spotify.com/web-api/endpoint-reference/

i want to get LoginUser's metadata as displayName, birthday and country

the '/v1/me' endpoint should cover this as much as currently possible https://developer.spotify.com/web-api/get-current-users-profile/

Since Spotify doesnt have a java library you can use directly for web apis, you will want to make your own or pick one of the java/android libraries listed here :

https://developer.spotify.com/web-api/code-examples/#libraries