Skip to content

emono/line-notify-client

Repository files navigation

Gem Version Build Status Gem Download MIT License

Line::Notify::Client

Installation

Add this line to your application's Gemfile:

gem 'line-notify-client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install line-notify-client

Set up

  • require library
require 'line-notify-client'

Usage

  • token use argument
token = "hoge1234" # line_notify_access_token
message = "hogehoge" # send_message
Line::Notify::Client.message(token: token, message: message)
  • token use environment variable
# add line_notify_access_token
$ vi ~/.bash_profile
LINE_NOTIFY_TOKEN="hoge1234"
message = "hogehoge" # send_message
Line::Notify::Client.message(message: message)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/emono/line-notify-client. This project is intended to be a safe, welcoming space for collaboration.

License

The gem is available as open source under the terms of the MIT License.