Send private messages with add-on

Hi!

 

Is there any way add-on can send private message to user (containing sensitive or private data, for example)?

Thanks!

1 answer

1 accepted

1 vote

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.

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 .

Yes, looks like solution. Thank you so much!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

122 views 3 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you