Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 719 Bytes

README.md

File metadata and controls

45 lines (30 loc) · 719 Bytes

line_notify_client

LINE Notify API client library, written in Ruby https://notify-bot.line.me/doc/en/

Install

gem install line_notify_client

or

# Gemfile
gem 'line_notify_client'

Library

require 'line_notify_client'

# OAuth2 Auhentication Documentation: https://notify-bot.line.me/doc/en/
access_token = 'access token from LINE Notify oauth2 authentication'

# new client
client = LineNotifyClient.new(access_token)

# Sends notifications to users or groups are related to an access token.
client.notify('message')

# Check the validity of an access token.
client.status

# Disable an access token
client.revoke

Development

  • Run rspec
bundle exec rake