Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I generate an auth_token with send_message scope?

Igor Urdenko FX November 9, 2017

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

0 votes
Answer accepted
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 12, 2017

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

0 votes
Igor Urdenko FX November 13, 2017

Thank you very much, Mohammad!

The link for token generation helped me completely!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events