Skip to content

the-trash/mailchimp-test-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mailchimp-test-app

For use need set api key and get list id

https://us9.admin.mailchimp.com/account/api/
http://kb.mailchimp.com/lists/managing-subscribers/find-your-list-id

and replace in app/controller/index.rb:

def add_mail
  gb = Gibbon::API.new(YOUR_API_KEY)
  gb.lists.subscribe({:id => YOUR_LIST_ID, :email => {:email => params[:email]}, :merge_vars => {:FNAME => 'First Name', :LNAME => 'Last Name'}, :double_optin => false})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published