RocketChat API with Python
Project description
#### RocketChat API
Python API wrapper for the [Rocket chat API](https://rocket.chat/docs/developer-guides/rest-api)
#### Install
pip install rocket-python
#### 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.
#### Running Tests
py.test tests rocketchat
##### 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
Built Distribution
Hashes for rocket_python-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d988ec41a3dc87f06cba4288e34a4c2788a9d4782a1f1fedc6802842238ab5c |
|
MD5 | a83674a0149bd241807eec0b749dfa2e |
|
BLAKE2b-256 | 22caeebc56616843f4918d69ad9d1e25804513d15c4827de270455b6e33b2391 |