If 'password' in reduced_args and method != 'users.create': #Pics wont post in rocketchat password# Some methods use pass (users.register) and others password (users.create) # Since pass is a reserved word in Python it has to be injected on the request dict Reduced_args = self._reduce_kwargs(kwargs) #Pics wont post in rocketchat codeHere is the code to the post method i am using: def post(self, method, files=None, use_json=True, **kwargs): So now i want to set up the logo and favicons. all works fine and also a bunch of other methods i implemented already work fine (to set up channels and other settings). However the docs are not really clear and so far i did not succeed to actually upload an asset and set it.īased on code i found on github ( Thanks!) i wrote a minimal wrapper around the REST API only implementing the endpoints that i need. I am really happy to see the possibility to set assets being added to the REST API. 60-day money back guarantee.I am working on some scripts to automate setting up RocketChat during deployment. Easy deploying in your enterprise or organization.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |