Python: get Hipchat 1-1 history chat
Group chat history is only exported by users with admin permission only. However, a normal user can export his 1-1 history chat via Hipchat API.
Below is a simple script to export 1-1 history chat.
How to generate your hipchat access token: An access token is used in place of user and password parameters.
How to the user ID: User ID is the the ID of the user that you want to get the history chat.
Below is a simple script to export 1-1 history chat.
How to generate your hipchat access token: An access token is used in place of user and password parameters.
- Login to your hipchat account on a web browser
- Go to Account Setting by clicking on your person icon in the upper, right corner.
- Select API Access.
- Generate a token with suitable scope (Select "View Messages" in this case since we want to get the history chat)
How to the user ID: User ID is the the ID of the user that you want to get the history chat.
- Click to open chat with the user
- The user ID is from the URL