Hi Michael,
You can send a message on users behalf – a user can authorize your add-on via 3LO Auth. You can also create a dedicated user for your add-on and have that user to send direct messages.
I tired to do as follows.
When add-on installed, programmatically (POST /v2/user) create a "bot" user and add him to group. But then, how can I obtain (programmatically) access token to send messages on this bot's behalf? I can't figure out if this even possible. I think it's not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mikhail, it is possible.
When you create the 'bot' user set its username and password and then you can generate token using the 'password' grant: https://www.hipchat.com/docs/apiv2/method/generate_token .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.