LINE NotifyをPythonで使ったときのメモです。 動作環境 Python 3.5.2 requests 2.11.1 準備 公式サイトにログインし、マイページから通知を送信するトークルームのトークンを発行します。 次に、トークンを発行したグループにLINE Notifyの公式アカウントを招待したら事前準備完了です。 プログラム import requests payload = {'message': 'test'} # 通知させたいメッセージ headers = {'Authorization': 'Bearer ' + ACCESS_TOKEN} # 発行したトークン r = requests.post('https://notify-api.line.me/api/notify', data=payload, headers=headers) print(r) ちなみにス