Skip to content

Instantly share code, notes, and snippets.

@rolandobrown
Created January 18, 2018 19:00
Show Gist options
  • Save rolandobrown/427f4cb61e9734dbc6a474c0cb7fb21c to your computer and use it in GitHub Desktop.
Save rolandobrown/427f4cb61e9734dbc6a474c0cb7fb21c to your computer and use it in GitHub Desktop.
import_into_carto with content_guessing=true
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