How can I generate an auth_token with send_message scope?

I am trying to create a Java application that will be sending messages after some process finishes. According to design, the application provides a list of failed data which can contain 1000+ data rows. Therefore sending just a notification is not the case for me.

I decided that I will use file sharing using /v2/room/{room_id_or_name}/share/file call.

This call should be done with send_message scope but I can't find how to make it.

Could someone please help me with that?

I am using Postman to send messages to /v2/room/{room_id_or_name}/share/file but I always receive 

{
"error": {
"code": 401,
"message": "Authenticated requests only. See https://www.hipchat.com/docs/apiv2/auth for more information.",
"type": "Unauthorized"
}
}

 

2 answers

1 accepted

This widget could not be displayed.

Hi Igor,

 

I would suggest you reach out to our developer community at https://community.developer.atlassian.com/c/hipchat-development so that you'll be able to get a better guidance.

 

Additionally, do try to generate a token from your profile for v2 API at https://www.hipchat.com/account/api

This widget could not be displayed.

Thank you very much, Mohammad!

The link for token generation helped me completely!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 10, 2018 in Hipchat

What should I think about when migrating HipChat to Slack?

...from the beginning. We have built up a lot of content in HipChat, with it being a core tool in our distributed company model. While it is true that we didn’t need to move to Slack immediately, we felt it...

425 views 1 10
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