teamchatviz icon indicating copy to clipboard operation
teamchatviz copied to clipboard

RocketChat integration

Open Xqua opened this issue 8 years ago • 5 comments

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.

Xqua avatar Sep 19 '16 22:09 Xqua

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

OrKoN avatar Sep 20 '16 05:09 OrKoN

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 avatar Sep 21 '16 19:09 Xqua

@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.

OrKoN avatar Sep 21 '16 20:09 OrKoN

oh yes that would be neat ! do you have the DB architecture somewhere ?

Xqua avatar Sep 23 '16 17:09 Xqua

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 .

OrKoN avatar Sep 23 '16 17:09 OrKoN