

#Rocketchat api code#
staging babel / code - frame - f3697825 npm ERR ! errno - 2 npm ERR ! enoent ENOENT: no such file or directory, rename -> npm ERR ! enoent This is related to npm not being able to find a file. chat / apps - engine - c7135600 / node_modules babel / code - frame npm ERR ! dest PATH_TO_ROCKETCHAT / node_modules /. Npm ERR ! code ENOENT npm ERR ! syscall rename npm ERR ! path PATH_TO_ROCKETCHAT / node_modules /.
#Rocketchat api install#
#Rocketchat api update#

Make sure to actually clone the repo, since you will probably need to add some code to it in order to make your new functionality work.Īfter that, cd into Rocket.Chat folder and run: meteor npm install PATH_TO_APPS_ENGINE Now, you need to setup a local Rocket.Chat server, so head to the project's README for instructions on getting started (if you haven't already). When developing new functionalities, you need to integrate the local version of the Apps-Engine with your local version of Rocket.Chat.įirst of all, make sure you've installed all required packages and compiled the changes you've made to the Apps-Engine, since that is what Rocket.Chat will execute: npm install npm run compile Some features the Engine allows Apps to use:

The Apps-Engine is Rocket.Chat's plugin framework - it provides the APIs for Rocket.Chat Apps to interact with the host system. What does the Apps-Engine enable you to do? Simple interface with settings and checkbox to allow/disallow them. Idea is to allow the implementer to have a default set of restricted ones while letting the admin/owner of the server to restrict it even further or lift the restriction on some more.
#Rocketchat api free#
Reporting bugs and asking for features is also contributing 😉 Feel free to help us grow by registering issues. Please, try to implement tests for all your code and use a PEP8 compliant code style. (It may take a while to merge your code but if it's good it will be merged). You can contribute by doing Pull Requests.

To start test server do docker-compose -f docker-compose-test-server.yml up and to take test server down docker-compose -f docker-compose-test-server.yml down Contributing Tests run on a Rocket.Chat Docker container so install Docker and docker-compose. If you are interested in a specific call just open an issue or open a pull request. Most of the API methods are already implemented. For a detailed parameters list check the Rocket chat API API coverage Only required parameters are explicit on the RocketChat class but you can still use all other parameters. Rocket = RocketChat( 'user', 'pass', server_url= '', session=session) This will save significant time by avoiding re-negotiation of TLS (SSL) with the chat server on each call. If you are going to make a couple of request, you can user connection pooling provided by requests. Note: every method returns a requests Response object. Pprint(rocket.channels_history( 'GENERAL', count= 5).json()) Pprint(rocket.chat_post_message( 'good news everyone!', channel= 'GENERAL', alias= 'Farnsworth').json()) Rocket = RocketChat( 'user', 'pass', server_url= '', proxies=proxy_dict) Clone our repository and python3 setup.py installįrom rocketchat_API.rocketchat import RocketChat
