Sending messages from scripts using authentication tokens/OAuth
Rocket.Chat Version: 0.54.2 Running Instances: 2 DB Replicaset OpLog: Enabled Node Version: v4.7.3
I want to authenticate a user with an authentication token (such as OAuth) and then send messages on behalf of that user with a script.
It is my understanding that the API exposed to an OAuth authenticated user is not the same as the ReST API and isn't capable of sending messages. We've been trying it with integrations and scripting an interface for sending messages via rocket cat, but it's not sufficient for communicating in direct messages.
Are there tokens other than OAuth that do allow this with Rocket Chat? We're not necessarily married to OAuth if that's the issue.
It's been something we've been looking forward to using for a while and it will really help with our cross-site communication efforts.
Thanks! Ben