No description, website, or topics provided.
Ruby
Latest commit 205714f Feb 17, 2017 @asonas Bump!
Permalink
Failed to load latest commit information.
lib Bump! Feb 17, 2017
spec write test Jun 11, 2016
.gitignore fix typo Nov 28, 2013
Gemfile Initial commit Nov 28, 2013
LICENSE.txt Initial commit Nov 28, 2013
README.md Update README Jun 20, 2016
Rakefile fix typo Nov 28, 2013
chatwork.gemspec Relax faraday dependency for faraday v0.11.0 Feb 17, 2017

README.md

Chatwork

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'chatwork'

And then execute:

$ bundle

Or install it yourself as:

$ gem install chatwork

Usage

require "chatwork"

# Create message
ChatWork.api_key = "XXX"
ChatWork::Message.create(room_id: 1234, body: "Hello, ChatWork!")

or

$ cat send_message.rb
require "chatwork"

ChatWork::Message.create(room_id: 1234, body: "Hello, ChatWork!")
$ CHATWORK_API_TOKEN=xxx ruby send_message.rb

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