You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pham-thomas I think that this is a validation report, and simpler than you describe, but I'll fix it in the next devel version. validate_parameters() does not require both parameters, in fact, it does not require them at all. But I am sure that this is a parameter validation error. Thanks for the report!
Apologies if I'm doing something obviously wrong but I was having issues with
get_my_saved_tracks()
. I'm on R 4.1.0 and spotifyr 2.2.1.Calling
get_my_saved_tracks()
returns the error:Looking through the source for
get_my_saved_tracks()
, I see thatvalidate_parameters()
requires a value for:artists_or_tracks
artist_or_user
I tried copying the source code and editing it to see if I could get it to work. Within the
validate_parameter()
call I setartists_or_tracks
= 'tracks'artist_or_user
= 'artist'Ran it again and got the following error:
Strange because it says country should be optional. Ok so now I set:
country
= 'us'Rain it again and got the following error:
Also should have been optional. Change it to:
locale
= 'eng'Re-run, now I get
Looks like
RETRY()
comes fromhttr
. Loadlibrary(httr)
and try again.Looks like
fromJSON
is fromjsonlite
. Loadlibrary(jsonlite
and try again. And voila! Seems to work now.So basically this is all to say
get_my_saved_tracks()
did not work for me until I made these edits.This is what I did to get it to work
The text was updated successfully, but these errors were encountered: