Skip to content

Instantly share code, notes, and snippets.

@furilo
Created April 3, 2014 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furilo/9955356 to your computer and use it in GitHub Desktop.
Save furilo/9955356 to your computer and use it in GitHub Desktop.
sql = "INSERT INTO bancosdealimentos (full_address, contact, type) VALUES ('#{address}', '#{contact}', '')"
url = "https://danilat.cartodb.com/api/v2/sql?api_key=#{ENV['API_KEY']}"
response = RestClient.post URI.escape(url), :q => sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment