lib/foursquare2/settings.rb
def update_setting(setting, value, options={})
      response = connection.post do |req|
        req.url "settings/#{setting}/set", {:value => value}.merge(options)
      end
      return_error_or_body(response, response.body.response)
    end
def update_setting(setting, value, options={})
      response = connection.post do |req|
        req.url "settings/#{setting}/set", {:value => value}.merge(options)
      end
      return_error_or_body(response, response.body.response)
    end
Update a single setting for the authenticated user.

 @param [String] setting - The name of the setting to update, one of sendtotwitter, sendtofacebook, pings.
 @param [String] value - One of '1','0'