For more information please download the source and visit the SpotifyWebAPI.Test project. In this project you'll find a folder/page dedicated to each metadata object supported by the library.

Example 1 - Album - Get Album
// get alter bridge's blackbird album
var output = await SpotifyWebAPI.Album.GetAlbum("0Fk4lWAADmFMmuW6jp6xyE");

Example 2 - Artist - Get Artist
// get alter bridge
var output = await SpotifyWebAPI.Artist.GetArtist("4DWX7u8BV0vZIQSpJQQDWU");

Example 3 - Track - Search for a track
// get ties that bind from alter bridge's blackbird album
var output = await SpotifyWebAPI.Track.Search("Ties that bind", "Blackbird", "Alter Bridge");

Example 4 - User - Get User
// get my profile, returns a basic profile
var user = await SpotifyWebAPI.User.GetUser("tinyioda");

Example 5 - Get the user and his playlists
// create an authentication token
// for an example of this see SpotifyWebAPI.Test/Authentication/Default.aspx and https://developer.spotify.com/web-api/authorization-guide/
var AuthenticationToken = new AuthenticationToken()
   {
      AccessToken = "NgCXRK...MzYjw",
      ExpiresOn = DateTime.Now.AddSeconds(3600),
      RefreshToken = "dfagC...fd43x",
      TokenType = "Bearer"
   };

// get the user you just logged in with
var user = await SpotifyWebAPI.User.GetCurrentUserProfile(AuthenticationToken);

// get this persons playlists
var playlists = await user.GetPlaylists(AuthenticationToken);

Last edited Aug 14, 2014 at 3:59 AM by tinyioda, version 5