{"repo":"Pipoline/rocket-python","free":true,"listed":false,"github":"https://github.com/Pipoline/rocket-python","clone":"git clone https://github.com/Pipoline/rocket-python.git","description":"RocketChat API Implemented in Python","language":"Python","stars":78,"topics":["rocketchat","python","api"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"RocketChat API Python API wrapper for the Rocket chat API Documentation Install pip install rocket-python Usage Initialize the client with a username and password or token and user id. This user must have Admin privs: from rocketchat.api import RocketChatAPI api = RocketChatAPI(settings={'username': 'someuser', 'password': 'somepassword', 'domain': 'https://myrockethchatdomain.com'}) # or api = RocketChatAPI(settings={'token': 'sometoken', 'user id': 'someuserid', 'domain': 'https://myrockethchatdomain.com'}) Available Calls api.send message('message', 'room id') api.get private rooms() api.get private room history('room id', oldest=date) api.get public rooms() api.get room info('room id') api.get private room info('room id') api.get room history('room id') api.create public room('room name', members=[], read only=False) api.delete public room('room id') api.get my info() api.get users() api.get user info('user id') api.create user('email', 'name', 'password', 'username', active=True, roles=['user'], join default channels=True, require password change=False, send welcome email=False, verified=False, customFields=None) api.delete user('user id') api.upload file(room id='room id', file='file', description='File description', message='Example message') check /rocketchat/calls/api.py for more. 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.","default_branch":null,"files":null,"tree":[],"storefront":"/r/Pipoline","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Pipoline/rocket-python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}