Help us understand the problem. What is going on with this article?

LINE NotifyでLINEにポストするだけの簡単なRubyスクリプト

More than 3 years have passed since last update.

LINE Notifyのページでアクセストークンを発行しておく。

require 'net/http'

uri = URI.parse("")
https =, uri.port)
https.use_ssl = true

req =
req["Authorization"] = "Bearer #{あなたのアクセストークン}"
req["Content-Type"] = 'application/x-www-form-urlencoded;charset=UTF-8'
req.set_form_data({message: 'テスト'})

res = https.request(req)
モバイルゲームの企画、開発、運営およびソリューション事業を生業とした、Ruby on RailsとUnityな会社です。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away