Skip to content

Instantly share code, notes, and snippets.

@Omnipresent
Last active August 29, 2015 14:01
Show Gist options
  • Save Omnipresent/3d1291fd81b5caf6172e to your computer and use it in GitHub Desktop.
Save Omnipresent/3d1291fd81b5caf6172e to your computer and use it in GitHub Desktop.
item = "Jalapeño" #does not work - gives BAD URL error
item = "Jalapeno" #does work
client.shared.get("myapi/#{item}") do |result|
if result.success?
block.call(result.object)
else
puts result.error.to_s
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment