https://github.com/iory/pyline-notify
A python library for manipulating line notify api
https://github.com/iory/pyline-notify
line line-notify pip python
Last synced: 3 days ago
JSON representation
A python library for manipulating line notify api
- Host: GitHub
- URL: https://github.com/iory/pyline-notify
- Owner: iory
- License: mit
- Created: 2020-05-26T04:31:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T09:23:02.000Z (over 3 years ago)
- Last Synced: 2025-05-20T15:13:26.188Z (about 1 month ago)
- Topics: line, line-notify, pip, python
- Language: Python
- Homepage:
- Size: 683 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyline-notify
A python library for manipulating line notify api
## Install
```
pip install pyline-notify
```## QuickStart
First, get line notify token from https://notify-bot.line.me
```
import line_notify
client = line_notify.LineNotify(token=YOUR_ACCESS_TOKEN)
client.notify('hello') # send message
client.notify(imgs='./docs/image/london.jpg') # path of image
```You can send `PIL.Image.Image`
```
from PIL import Image
pil_img = Image.open('./docs/image/london.jpg')
client.notify(imgs=pil_img)
```
![]()
If the argument of `LineNotify`'s `token` is None, get access token from environment variable `LINENOTIFY_TOKEN`.