Created
April 3, 2014 14:26
-
-
Save furilo/9955356 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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