Created
January 18, 2018 19:00
-
-
Save rolandobrown/427f4cb61e9734dbc6a474c0cb7fb21c to your computer and use it in GitHub Desktop.
import_into_carto with content_guessing=true
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
import_into_carto("grow_test_government_body_assembly") | |
def import_into_carto(file_name) | |
`curl -v -F file=@public/data/#{file_name}.csv "https://advocacy-institute.carto.com/api/v1/imports/?api_key=#{ENV["CARTO_API_KEY"]}&content_guessing=true"` | |
puts "carto staging dataset uploaded".colorize(:green) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment