access users data in spotify app

Using the advice in this post I have been able to access the spotify users data for their playlists with

sp = getSpotifyApi(1);
console.log (sp.core.library.getAlbums());                

I want to access the spotify user data for the user logged into the app, specifically the spotify uri for the user.

sp = getSpotifyApi(1);
console.log (sp.core.user);        // is undefined
console.log (; // is undefined

How can I do this?


This information is not available in the Spotify Apps API for privacy reasons. There is a unique user ID, but it is not the user's username.

If you need the user's friends list, you'll need to connect to (say) Facebook yourself and get it that way.

Need Your Help

Can not query linq to sql in the Views of MVC C# linq-to-sql

I want to query the user that log in success in the web site :

Repository pattern without interfaces

.net nhibernate design-patterns repository

what's bad to implement repository pattern without interfaces?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.