Instructions - Lunatix89/luna-libspotify-dotnet GitHub Wiki
How to use the library
Add "Luna.LibSpotify" as a reference to your C# project Create a class "public class MySession : Luna.LibSpotify.Session { .. }" Override the abstract and optional the virtual members and you are ready to start a spotify session, logon a user, play a track... everything you want.
Please note, that you have to provide the following data when initializing the session:
public class MySession : Luna.LibSpotify.Session {
public MySession() {
SessionConfig.ApplicationKey = myAppKeyBytes;
SessionConfig.UserAgent = "MyAppName";
}
}
You can request a spotify app key via your spotify premium account from the spotify developer zone: https://developer.spotify.com/technologies/libspotify/keys/