RocketChat API with Python
Project description
#### RocketChat API
Python API wrapper for the [Rocket chat API](https://rocket.chat/docs/developer-guides/rest-api/)
#### Usage
Initialize the client with a username and password. This user must have Admin privs:
from rocketchat.api import RocketChatAPI api = RocketChatAPI(settings={'username': 'someuser', 'password': 'somepassword', 'domain': 'https://myrockethchatdomain.com'})
#### Supported Calls
Only a few calls exist within the API, and I am only adding them as they are needed by users. If you need a call, open an issue or send a pull request.
##### Sending a message
You’ll first need to get the _id of the room you want to send a message to. Currently, Rocket can only send messages to public rooms.
api.send_message(‘Your message’, room_id)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rocket-python-0.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for rocket_python-0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5488eddc75b05e7f4a929e15986c02afa9ba54bdb421cab65c3dd57373157628 |
|
MD5 | c685965c2c052c464ddd603dd67ee879 |
|
BLAKE2b-256 | 248a4da1ee06d9e99af8ca47660164f8d041cb51469127ca0f61f2214f7fc3a6 |