From c6388feb5741b1dff6bdcbd6a93a20fb2e68c22a Mon Sep 17 00:00:00 2001 From: ejcx Date: Mon, 1 Feb 2016 09:55:06 -0800 Subject: [PATCH] Send a message. Not a notification --- hipchat/hipchat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipchat/hipchat.go b/hipchat/hipchat.go index f6451f4..1aec48d 100644 --- a/hipchat/hipchat.go +++ b/hipchat/hipchat.go @@ -46,7 +46,7 @@ func (h *HipchatClient) Notify(msg, color string) error { return err } roomId := url.QueryEscape(strconv.Itoa(h.RoomId)) - hipchatUrl := fmt.Sprintf("https://%s/v2/room/%s/notification?auth_token=%s", h.HcHost, roomId, h.ApiKey) + hipchatUrl := fmt.Sprintf("https://%s/v2/room/%s/message?auth_token=%s", h.HcHost, roomId, h.ApiKey) req, err := http.NewRequest("POST", hipchatUrl, bytes.NewReader(body)) req.Header.Add("Content-Type", "application/json")