RocketChat / Rocket.Chat.js.SDK

Utility for apps and bots to interact with Rocket.Chat via DDP and/or API
MIT License
135 stars 95 forks source link

How change host for "api" #84

Closed taraa62 closed 5 years ago

taraa62 commented 5 years ago

I want to create a new closed group in a rocket and for this I understand it should use "api.post" But all requests go to "http: // localhost: 3000 / api / v1" For change I used:

process.env.ROCKETCHAT_USER = rocket.user;
process.env.ROCKETCHAT_PASSWORD = rocket.password;
process.env.ROCKETCHAT_USE_SSL = true;

settings.host = rocket.host;
settings.useSsl = true;

But it doesn’t want to do anything at all .. How can I create a new group and add a person there? or how can this be sent via driver