spaceship/lib/spaceship/tunes/tunes_client.rb in fastlane-2.73.0.beta.20180105010003 vs spaceship/lib/spaceship/tunes/tunes_client.rb in fastlane-2.73.0

- old
+ new

@@ -328,14 +328,15 @@ parse_response(r, 'data') end def get_ratings(app_id, platform, version_id = '', storefront = '') # if storefront or version_id is empty api fails - rating_url = "ra/apps/#{app_id}/platforms/#{platform}/reviews/summary?" - rating_url << "storefront=#{storefront}" unless storefront.empty? - rating_url << "version_id=#{version_id}" unless version_id.empty? + rating_url = "ra/apps/#{app_id}/platforms/#{platform}/reviews/summary" + params = {} + params['storefront'] = storefront unless storefront.empty? + params['version_id'] = version_id unless version_id.empty? - r = request(:get, rating_url) + r = request(:get, rating_url, params) parse_response(r, 'data') end def get_reviews(app_id, platform, storefront, version_id) index = 0