An open API service indexing awesome lists of open source software.

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

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`.