mnpk / fleep-py

A python Fleep API client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fleep-py

A python Fleep API client

Fleep has the RESTful API and you can find the documentation here. This package makes it easy to use fleep API in python.

Example

from fleep_client import FleepClient

c = FleepClient()

# connect using env variables: FLEEP_EMAIL, FLEEP_PASSWORD
c.connect()

# send message to conversation
c.send('conv-id', 'hello')

# upload a file to conversation
with open('test.png', 'rb') as f:
    data = f.read()
    c.upload('conv-id', data, 'test.png')

LICENSE

MIT License

About

A python Fleep API client

License:MIT License


Languages

Language:Python 100.0%