lib/access/api.rb in access-2.0.48 vs lib/access/api.rb in access-2.0.49

- old
+ new

@@ -366,28 +366,28 @@ end ## Favorites def favorites_search(options = {}) - request.get("/members/#{options[:member_key]}/favorites/#{options[:favorite_type]}", "mms", options) do |response| + request.get("/members/#{options.delete(:member_key)}/favorites/#{options.delete(:favorite_type)}", "report", options) do |response| FavoriteResponse.new(response) end end def favorites_find(resource_id, options = {}) - request.get("/members/#{options[:member_key]}/favorites/#{options[:favorite_type]}/#{resource_id}", "mms", options) do |response| + request.get("/members/#{options.delete(:member_key)}/favorites/#{options.delete(:favorite_type)}/#{resource_id}", "report", options) do |response| FavoriteResponse.new(response) end end def favorites_create(resource_id, options = {}) - request.post("/members/#{options[:member_key]}/favorites/#{options[:favorite_type]}/#{resource_id}", "mms", options) do |response| + request.post("/members/#{options.delete(:member_key)}/favorites/#{options.delete(:favorite_type)}/#{resource_id}", "mms", options) do |response| FavoriteResponse.new(response) end end def favorites_delete(resource_id, options = {}) - request.delete("/members/#{options[:member_key]}/favorites/#{options[:favorite_type]}/#{resource_id}", "mms", options) do |response| + request.delete("/members/#{options.delete(:member_key)}/favorites/#{options.delete(:favorite_type)}/#{resource_id}", "mms", options) do |response| FavoriteResponse.new(response) end end ## Geolocation