TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'mark_opt_in_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mark_opt_in_api
Example Usage:
Add new record use: MarkOptInApi::Api.add mobile: '1231432432', first_name: 'asdsajhdgaj', last_name: 'ahsdjashgdas', email: '[email protected]', company_name: 'sadasdas', channel: 'sms', permission_type: "one-time"
Update exist record: MarkOptInApi::Api.update 1, {company_name: 'super company'}
first param: record id
second param: hash with update information
Delete MarkOptInApi::Api.delete 1
first param: record id
Configuration:
MarkOptInApi.configure do |config|
config.host = 'localhost'
config.port = 3000
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request