Skip to content

Instantly share code, notes, and snippets.

@maxehmookau
Created April 21, 2016 09:19
Show Gist options
  • Save maxehmookau/2235e23883b45e1ca3ca0c7bd7f6716a to your computer and use it in GitHub Desktop.
Save maxehmookau/2235e23883b45e1ca3ca0c7bd7f6716a to your computer and use it in GitHub Desktop.
HTTParty GET Request where two parameters have the same key
include HTTParty
query = {}
query["x"] = ['value1', 'value2']
response = HTTParty::Basement.get(__URL__, query: query,
query_string_normalizer: HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment