teamchatviz
teamchatviz copied to clipboard
RocketChat integration
Hi
I'd love to work on a rocket.Chat integration, but I'm not sure where to start looking !
What are you pulling with the API exactly ?
Where is it in the code ?
I'm sure it should not be too hard, as RocketChat has a REST API too.
Hi @Xqua
the data sync is triggered after a successful team admin login: https://github.com/moovel/teamchatviz/blob/master/server/api/lib/auth.js#L53 And the module that fetches the data is located here: https://github.com/moovel/teamchatviz/tree/master/server/data/lib/sync We are currently using the official slack client for node instead of directly using the REST API.
So to add RocketChat integration, you will need to add a oauth flow and when an admin logs in, you need to fetch all data from RocketChat to the db.
Best regards, Alex
I see ! So there is a need to rewrite all the functions for REST API instead ... I just made a python library to the RC API, I'll port it to JS and the see how hard it is to do this.
Thanks !
@Xqua you could also use your python lib and write a program that loads data into the database. It just needs to understand the database structure.
oh yes that would be neat ! do you have the DB architecture somewhere ?
You can find the structure of the tables in db migrations files. Feel free to ask questions if something is not clear! Xqua [email protected] schrieb am Fr., 23. Sep. 2016 um 19:19:
oh yes that would be neat ! do you have the DB architecture somewhere ?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/moovel/teamchatviz/issues/57#issuecomment-249251232, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYXLiQXlyPowmVapAJoys7TAhnJb8Irks5qtAoqgaJpZM4KBByi .