Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rocket.Chat - How get roomId

Tags:

rocket.chat

I am new in work with Rocket.Chat. I need send message to channel. I already get authorization. When I read documentation about send message I found roomId parameter, but I don't know how get this ID. I try found in administration panel on Rocket.Chat but without success. Also if who know, how get access to Rocket.Chat database

Thanks

like image 915
Metal Evolution Studio Avatar asked Jan 16 '17 17:01

Metal Evolution Studio


People also ask

How to get the room-ID from the API?

First, call the API create-visitorto create a visitor and in response, you will get a token, use in next API open-roomto open a room and in response, you will get room-id.

How to create a room for a specific user?

use createDirectMessage api, you have to pass usernames of those users you want to create room for. If you don't send any user, a room that have only you will be created.

Can 2 rocket chat receive SMS texts from Twilio?

2 Rocket.Chat can not receive SMS texts from Twilio. (Twilio's Debugger: HTTP retrieval failure) Hot Network Questions How many fingers do the inhabitants of this planet have? Improving Cauchy estimates? Why is my house energy efficient only in winter? Multiple align in formulae


1 Answers

For accessing the database you can use Robo 3t (how to use it with meteor How to connect mongodb clients to local Meteor MongoDB).

Or you can use the rest api to get the channel info https://rocket.chat/docs/developer-guides/rest-api/channels/info

like image 120
Martin Schoeler Avatar answered Sep 19 '22 19:09

Martin Schoeler