Send a message. Not a notification

This commit is contained in:
ejcx
2016-02-01 09:55:06 -08:00
parent cac6da28c4
commit c6388feb57

View File

@@ -46,7 +46,7 @@ func (h *HipchatClient) Notify(msg, color string) error {
return err return err
} }
roomId := url.QueryEscape(strconv.Itoa(h.RoomId)) 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, err := http.NewRequest("POST", hipchatUrl, bytes.NewReader(body))
req.Header.Add("Content-Type", "application/json") req.Header.Add("Content-Type", "application/json")