Skip to content

Instantly share code, notes, and snippets.

@DriesS
Created February 4, 2016 13:37
Show Gist options
  • Save DriesS/d98f8f326cf1c1147a2e to your computer and use it in GitHub Desktop.
Save DriesS/d98f8f326cf1c1147a2e to your computer and use it in GitHub Desktop.
Method
def subscribe(id, email, merge_vars=nil, email_type='html', double_optin=true, update_existing=false, replace_interests=true, send_welcome=false)
_params = {:id => id, :email => email, :merge_vars => merge_vars, :email_type => email_type, :double_optin => double_optin, :update_existing => update_existing, :replace_interests => replace_interests, :send_welcome => send_welcome}
return @master.call 'lists/subscribe', _params
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment