Skip to content

Last.fm API it's a library that provide capability to use Last.fm web services in C# like a ordinary functions.

Notifications You must be signed in to change notification settings

nicarb/Last.fm.API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Last.fm API

Last.fm API - it's a library that provide capability to use Last.fm web services in C# like a ordinary functions.

##Example how use //Add usings using Last.fm.API; using Last.fm.API.Auth; using Last.fm.API.Core.Web;

using (IAuthServices client = LastFmServices.AuthServicesClient)
{
    try
    {
        AuthToken token = client.GetToken();
        //Go to web browser and authorize token.
        Process.Start(token.Url);
        //Then continue to get session.
        AuthSession ssesion = client.GetSession(token);
    }
    catch (NotAuthorizedTokenException authEx)
    {
        //You can try to get session again.
    }
    catch (LastFmException commonEx)
    {
    }
}

About

Last.fm API it's a library that provide capability to use Last.fm web services in C# like a ordinary functions.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%