Just a blog to share my tricks, code snippets

Wednesday, March 8, 2017

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.
  • 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


For more information about the API, you can access this Hipchat API page

8 comments:

  1. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read.

    Python Training in Chennai | Python Training Institutes in Chennai

    ReplyDelete
  2. informative article , intresting to learn python visit python classes in pune

    ReplyDelete