Skip to content

Instantly share code, notes, and snippets.

@sharipov-ru
Created September 6, 2012 09:12
Show Gist options
  • Save sharipov-ru/3653486 to your computer and use it in GitHub Desktop.
Save sharipov-ru/3653486 to your computer and use it in GitHub Desktop.
hominid send
h = Hominid::API.new(APP_CONFIG['mailchimp']['api_key'])
h.campaign_create('regular', {:list_id => 'da461e7340', :subject => 'new campaign',
:from_email => 'name@gmail.com',
:from_name => 'Dev' }, {:html => '<h1>LOL</h1>' })
h.campaign_send_now("7c0100f8e7")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment