hipchat-laravel icon indicating copy to clipboard operation
hipchat-laravel copied to clipboard

The API version and url structure seems to have changed

Open ghost opened this issue 9 years ago • 1 comments

HI,

Here are few things that probably need addressing as well.

  1. The hipchat url is hardcoded. I have a company account with Atlassian, so I do not have the same url to access hip chat. Instead of being an constant const DEFAULT_TARGET = 'https://api.hipchat.com'; it should be definable in the config file.

  2. You seem to be accessing version 1 of the api and the current version is v2

  3. I don't know what the old system was but the new auth seems to be so: `POST /v2/room/{id_or_name}/notification Authorization: Bearer

{ "color": "green", "message": "My notification message", "notify": false, "message_format": "text" }`

As of now, I am getting 401 Unauthorized when using your wrapper.

Thanks for any efforts and assistance.

Cheers

ghost avatar Sep 28 '16 08:09 ghost

@teacii im not actually using it right now, but gonna take some minutes later today to test it. thanks for reporting

hernandev avatar Sep 28 '16 18:09 hernandev