inflatablefriends / lastfm

Portable .Net library for Last.fm
Other
100 stars 61 forks source link

User.GetTopArtists fails with "Missing parameter" #99

Closed SHOEGAZEssb closed 7 years ago

SHOEGAZEssb commented 7 years ago

I call the following line: var response = await MainViewModel.Client.User.GetTopArtists(Username, TimeSpan, 0, Amount); where 'Username' is 'coczero', 'TimeSpan' is 'Overall' and 'Amount' is 20. The response fails with the Status "MissingParameters". Any ideas?

rikkit commented 7 years ago

Is the 0 page number? Try setting it to 1. The API is inconsistent as to whether paging is 0 or 1 indexed. I can look at this a bit later.

SHOEGAZEssb commented 7 years ago

Yea this fixes it... alright, I guess =D

rikkit commented 7 years ago

Sweet. I'm planning to put in like a pager object that knows the default value for each api call. For now just try 0 or 1 :)