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

HipChat API to get current user and group

Nathan Baulch November 8, 2015

Is there a HipChat API that returns the current user and their group? Users of my app integrate with HipChat by providing a personal access token which I'd like to map to their HipChat user and group. Basically I'm looking for something similar to Slack's auth.test endpoint.

Thanks.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Don Brown [Atlassian]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2015

You can get information about your token, including the group id and user, if applicable, by calling https://www.hipchat.com/docs/apiv2/method/get_session

I second the suggestion to write a real integration, however,.

0 votes
Samuel Le Berrigaud
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 8, 2015

We don't have such an API at the moment. I'm not sure we actually need one.

 

I'd suggest you don't rely on personal authentication token and make your application an integration . As documented in the authentication section you can as an integration retrieve the access token of a user (doing the OAuth dance etc.).  This way you should have all the information you need and be able to guide your users through each steps... 

TAGS
AUG Leaders

Atlassian Community Events