Skip to content

Instantly share code, notes, and snippets.

@Janderson
Created April 9, 2012 04:26
Show Gist options
  • Select an option

  • Save Janderson/2341428 to your computer and use it in GitHub Desktop.

Select an option

Save Janderson/2341428 to your computer and use it in GitHub Desktop.
Integração do mail chimp com rails
Usando a gem https://github.com/chimpchamp/gibbon
seguintes passos adicional
> gb = Gibbon.new("130106ad3d03663dadc2fdc0a0d150c5-us4")
> gb.lists
{"total"=>1, "data"=>[{"id"=>"e2b771b034", "web_id"=>63249, "name"=>"teste", "date_created"=>"2012-04-09 03:41:42", "email_type_option"=>false, "use_awesomebar"=>true, "default_from_name"=>"teste1", "default_from_email"=>"[email protected]", "default_subject"=>"teste de grupo", "default_language"=>"en", "list_rating"=>0, "subscribe_url_short"=>"http://eepurl.com/kKPG1", "subscribe_url_long"=>"http://empresai.us4.list-manage2.com/subscribe?u=d982c93883cb9a49de816f58f&id=e2b771b034", "beamer_address"=>"ZDk4MmM5Mzg4M2NiOWE0OWRlODE2ZjU4Zi03N2YxY2EwNS00MDg2LTRlZmUtYTA5OC0xOGIzNDRhYjk1N2U=@campaigns.mailchimp.com", "stats"=>{"member_count"=>1, "unsubscribe_count"=>0, "cleaned_count"=>0, "member_count_since_send"=>1, "unsubscribe_count_since_send"=>0, "cleaned_count_since_send"=>0, "campaign_count"=>0, "grouping_count"=>0, "group_count"=>0, "merge_var_count"=>2, "avg_sub_rate"=>nil, "avg_unsub_rate"=>nil, "target_sub_rate"=>nil, "open_rate"=>nil, "click_rate"=>nil}, "modules"=>[]}]}
> gb.listSubscribe({:id=>"e2b771b034", :email_address=>"[email protected]"})
o destinatário recebe um email para confirmação do endereço
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment