Changed to invoke HTTParty with a hash of attributes, instead of manually building the query string