https://github.com/emono/line-notify-client
[RubyGem]LINE Notify API Ruby Client
https://github.com/emono/line-notify-client
api-client gem line line-notify ruby
Last synced: 12 months ago
JSON representation
[RubyGem]LINE Notify API Ruby Client
- Host: GitHub
- URL: https://github.com/emono/line-notify-client
- Owner: emono
- License: mit
- Created: 2019-05-06T13:06:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-21T09:35:28.000Z (about 7 years ago)
- Last Synced: 2025-06-24T00:05:18.580Z (12 months ago)
- Topics: api-client, gem, line, line-notify, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/line-notify-client
- Size: 40 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://badge.fury.io/rb/line-notify-client)
[](https://travis-ci.org/emono/line-notify-client)
[](https://rubygems.org/gems/line-notify-client)
[](LICENSE)
# Line::Notify::Client
- Api Client for LineNotify
- [api_document](https://notify-bot.line.me/ja/)
- Send line message
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'line-notify-client'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install line-notify-client
## Set up
- require library
```rb
require 'line-notify-client'
```
## Usage
- token use argument
```rb
token = "hoge1234" # line_notify_access_token
message = "hogehoge" # send_message
Line::Notify::Client.message(token: token, message: message)
```
- token use environment variable
```bash
# add line_notify_access_token
$ vi ~/.bash_profile
LINE_NOTIFY_TOKEN="hoge1234"
```
```rb
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](https://opensource.org/licenses/MIT).