Sha256: aafff8edca8644fd65ae6226a0eb5a18c4344f6a6d5ae10583b28e6956324c2e

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

# CatarseMailchimp

Catarse mailchimp integration with [Catarse](http://github.com/danielweinmann/catarse) crowdfunding platform

## Instalation

Add this lines to your Catarse application's Gemfile:

    gem 'catarse_mailchimp'

And then execute:

    $ bundle

## Usage

Add on user model app/models/user.br

    class User < ActiveRecord::Base
      ...

      sync_with_mailchimp

      ...
    end

### Configurations

Create this configurations into Catarse database:

    mailchimp_api_key, mailchimp_list_id

In Rails console, run this:

    Configuration.create!(name: "mailchimp_api_key", value: "API_KEY")
    Configuration.create!(name: "mailchimp_list_id", value: "LIST_ID")

Create a mailchimp configuration file on config/initilazers/mailchimp.rb and add:

    MAILCHIMP_API_KEY = Configuration[:mailchimp_api_key]
    MAILCHIMP_LIST_ID = Configuration[:mailchimp_list_id]

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request


This project rocks and uses MIT-LICENSE.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
catarse_mailchimp-0.0.1 README.md