lib/songstats/api/artist.rb in songstats-api-1.0.0 vs lib/songstats/api/artist.rb in songstats-api-1.1.0
- old
+ new
@@ -60,13 +60,13 @@
# https://docs.songstats.com/docs/api/87fcd0051843e-get-artist-top-playlists
options[:source] = "all" unless options.key? :source
fetch path(id, "/artists/top_playlists", options)
end
- def search(id, query, options = {})
+ def search(query, options = {})
# https://docs.songstats.com/docs/api/d761545339f09-search-artist
options[:q] = query
- fetch path(id, "/artists/search", options)
+ fetch path("", "/artists/search", options)
end
def add_link(id, link)
# https://docs.songstats.com/docs/api/16f83e3f941f2-add-artist-link
post path(id, "/artists/link_request", link: link)