lib/songstats/api/track.rb in songstats-api-1.0.0 vs lib/songstats/api/track.rb in songstats-api-1.1.0
- old
+ new
@@ -32,13 +32,13 @@
# https://docs.songstats.com/docs/api/b1071d94ab5fa-get-track-historic-stats
options[:source] = "all" unless options.key? :source
fetch path(id, "/tracks/historic_stats", options)
end
- def search(id, query, options = {})
+ def search(query, options = {})
# https://docs.songstats.com/docs/api/1f2e4f9b3b1d1-search-track
options[:q] = query
- fetch path(id, "/tracks/search", options)
+ fetch path("", "/tracks/search", options)
end
def add_link(id, link)
# https://docs.songstats.com/docs/api/731976e6c48b1-add-track-link
post path(id, "/tracks/link_request", link: link)