Skip to content

Instantly share code, notes, and snippets.

@bigfolio
Created September 29, 2010 20:31
Show Gist options
  • Save bigfolio/603492 to your computer and use it in GitHub Desktop.
Save bigfolio/603492 to your computer and use it in GitHub Desktop.
require 'hominid'
mc = Hominid::Base.new({:api_key => 'you-api-key-goes-here'})
list = mc.find_list_by_name('Name of Your Subscriber List')
users = User.all
users.each {|u| mc.subscribe(list['id'], u.email, {:FNAME => u.first, :LNAME => u.last}) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment