Skip to content

Instantly share code, notes, and snippets.

@amro
Created December 9, 2011 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amro/1452199 to your computer and use it in GitHub Desktop.
Save amro/1452199 to your computer and use it in GitHub Desktop.
Gibbon List Batch Subscribe Functional Test
require 'gibbon'
batch = []
(1..3000).each do |i|
batch << {:EMAIL => "foo+#{i.to_s}@gmail.com", :EMAIL_TYPE => "html"}
end
g = Gibbon.new("YOUR_APIKEY-DC")
puts "Response: " + g.list_batch_subscribe({:id =>"YOUR_LIST_ID", :double_optin => "false", :batch => batch, :update_existing => true}).to_s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment