Skip to content

haroldma-zz/Last.fm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Last.fm

Implementation last.fm on C# language

Travis NuGet Issues

It'is fork official library https://code.google.com/p/lastfm-sharp/

##Examples:

######Get Track.

  public static void Main(string[] args)
    {
      // Get your own API_KEY and API_SECRET from http://www.last.fm/api/account
      string API_KEY =  "YOUR API KEY";
      string API_SECRET =   "YOUR API SECRET";
      
      // Create your session
      Session session = new Session(API_KEY, API_SECRET);
      
      // Set this static property to a System.Net.IWebProxy object
      Lastfm.ProxySupport.Proxy = new System.Net.WebProxy("221.2.216.38", 8080);
      
      // Test it out...
      Track track = new Track("david arnold", "the hot fuzz suite", session);
      Console.WriteLine(track.GetAlbum());
    }

######Search tracks.

  public static void Main(string[] args)
    {
      // Get your own API_KEY and API_SECRET from http://www.last.fm/api/account
      string API_KEY =  "YOUR API KEY";
      string API_SECRET =   "YOUR API SECRET";
      
      // Create your session
      Session session = new Session(API_KEY, API_SECRET);
      
      // Set this static property to a System.Net.IWebProxy object
      Lastfm.ProxySupport.Proxy = new System.Net.WebProxy("221.2.216.38", 8080);
      
      // Test it out...
       var trackSearch = new TrackSearch("лесник", Session);

       var tracks = trackSearch.GetPage(1);
    }

About

Implementation last.fm on C# language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%