I am having trouble retrieving artist's album data from last.fm api. I am using lastfm-sharp library.
I want to show artist's all albums with their release date, genre and album art. But when I try to get release date I get exception thrown. textbox1.text is artist name.
here is my code :
Session session = new Session("API_KEY", "SECRET");
session.Authenticate("USERNAME", Lastfm.Utilities.md5("PASSWORD"));
Artist artist = new Artist(textBox1.Text, session);
Lastfm.Services.Album artalbum = new Lastfm.Services.Album(textBox1.Text, "", session);
dataGridView1.Columns.Add("artistname", "artistname");
dataGridView1.Columns.Add("albumname", "albumname");
dataGridView1.Columns.Add("releasedate", "releasedate");
foreach (var s in artist.GetTopAlbums())
dataGridView1.Rows.Add(s.Item.Artist,s.Item.Name,s.Item.GetReleaseDate());
ERROR :String was not recognized as a valid DateTime. I couldn't find any detail tutorial about using Last.fm api with c#.