All Projects → Pipoline → Rocket Python

Pipoline / Rocket Python

Licence: mit
RocketChat API Implemented in Python

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Rocket Python

Gotenberg Go Client
Go client for the Gotenberg API
Stars: ✭ 35 (-5.41%)
Mutual labels:  api
Helm Registry
The helm registry to store and deliver charts (Deprecated since compass v2.9)
Stars: ✭ 36 (-2.7%)
Mutual labels:  api
Texterify
The localization management system.
Stars: ✭ 37 (+0%)
Mutual labels:  api
Postgraduation
University management platform dedicated for post-graduation in computer science field using django rest framework.
Stars: ✭ 35 (-5.41%)
Mutual labels:  api
Camera calibration api
A simple Python API for single camera calibration using opencv
Stars: ✭ 36 (-2.7%)
Mutual labels:  api
Twitchcsharp
Twitch C# Wrapper for the Twitch v3 REST API
Stars: ✭ 36 (-2.7%)
Mutual labels:  api
Awesome apis
A collection of APIs
Stars: ✭ 7,733 (+20800%)
Mutual labels:  api
Stream Deck Api
API to interact with the Elgato Stream Deck controller
Stars: ✭ 36 (-2.7%)
Mutual labels:  api
Es6 Express Mongoose Passport Rest Api
Lightweight boilerplate for Node RESTful API, ES6, Express, Mongoose and Passport 🎁
Stars: ✭ 36 (-2.7%)
Mutual labels:  api
Cli
GraphQL back-end framework with first-class Typescript support
Stars: ✭ 37 (+0%)
Mutual labels:  api
Node Gitbook Api
Node client library for the GitBook API
Stars: ✭ 35 (-5.41%)
Mutual labels:  api
Drive
☁️ A distributed cloud based lazy drive to files integrated with Dropbox, Google Drive.
Stars: ✭ 36 (-2.7%)
Mutual labels:  api
Node Dota2 Api
Dota2 web api node.js version
Stars: ✭ 36 (-2.7%)
Mutual labels:  api
Copper
Copper is a set of Go packages that help you build backend APIs quickly and with less boilerplate.
Stars: ✭ 35 (-5.41%)
Mutual labels:  api
Bittrex Signalr Client
Node.js implementation of SignalR protocol tailored for Bittrex exchange
Stars: ✭ 37 (+0%)
Mutual labels:  api
Kspigot
Extended Spigot and Bukkit API for Kotlin
Stars: ✭ 35 (-5.41%)
Mutual labels:  api
Fritzbox.js
☎️ The leading AVM Fritz!Box API for NodeJS and JavaScript.
Stars: ✭ 36 (-2.7%)
Mutual labels:  api
Demo Loopback
Developing a complete REST API with Loopback
Stars: ✭ 37 (+0%)
Mutual labels:  api
Hellobooks
A Single-Page Library Management App built with nodejs, express and react and redux
Stars: ✭ 37 (+0%)
Mutual labels:  api
Opensourcetest
OpenSourceTest由自动化测试-夜行者社区维护,提供的是更多地灵活性和可配置性
Stars: ✭ 37 (+0%)
Mutual labels:  api

RocketChat API

Python API wrapper for the Rocket chat API

Documentation

Travis (.org) PyPI - Downloads PyPI Codecov

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.

api.send_message('Your message', room_id)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].