Knowtify
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'knowtify'
And then execute:
$ bundle
Or install it yourself as:
$ gem install knowtify
Usage
require 'knowtify'
ENV['KNOWTIFY_API_TOKEN'] = 'MySuperSecretKey'
new_contacts = [{
"name" => "John",
"email" => "[email protected]",
"data" => {
"category" => "sports",
"followers" => 300
}
},
{
"name" => "Samuel",
"email" => "[email protected]",
"data" => {
"category" => "sports",
"followers" => 32,
"comments" => 54,
"role" => "Editor"
}
}]
client = Knowtify::Client.new
resp = client.contacts_upsert(new_contacts) # <Knowtify::Response:0x007fdb629e5c10>
resp.successful? # true
Contributing
- Fork it ( https://github.com/[my-github-username]/knowtify/fork )
- 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 a new Pull Request