jadolg/rocketchat_API

How to pass an Auth token to RocketChat API

japrogramer opened this issue · 2 comments

Im looking to use the oauth token to then call /api/v1/me to register a user.

How do I make that call to RocketChat with the Auth Token instead of using username and password?

You could create a RocketChat object with no credentials and then set the auth_token for your object manually. There's no method for that because you can just directly access the attribute of the object.

thanks, that makes sense.