lib/foursquare2/client.rb in foursquare2-1.2.0 vs lib/foursquare2/client.rb in foursquare2-1.3.0
- old
+ new
@@ -41,12 +41,17 @@
params = {}
params[:client_id] = @client_id if @client_id
params[:client_secret] = @client_secret if @client_secret
params[:oauth_token] = @oauth_token if @oauth_token
@connection ||= Faraday::Connection.new(:url => api_url, :ssl => @ssl, :params => params, :headers => default_headers) do |builder|
- builder.adapter Faraday.default_adapter
+ builder.use Faraday::Request::Multipart
+ builder.use Faraday::Request::UrlEncoded
+
builder.use Faraday::Response::Mashify
builder.use Faraday::Response::ParseJson
+
+ builder.adapter Faraday.default_adapter
+
end
end
# Base URL for api requests.