Skip to content

Instantly share code, notes, and snippets.

View JeffTD's full-sized avatar

Jeff Dunne JeffTD

View GitHub Profile
@JeffTD
JeffTD / iwf_api_update.rb
Last active June 15, 2017 17:27 — forked from JiMaverick/iwf_api_update.rb
First API mod. Inserting html descriptions into a customer nation
require 'nationbuilder'
require 'csv'
slug = 'NATION'
token = 'INSERT TOKEN HERE'
client = NationBuilder::Client.new(slug, token)
i = CSV.open("/Users/jeffdunne/Desktop/iwf-first_upload-profiles.csv", headers: true).count
CSV.foreach("/Users/jeffdunne/Desktop/iwf-first_upload-profiles.csv", headers: true) do |row|
begin