Skip to content

Commit 67e8cfd

Browse files
sbigliagregdel
authored andcommitted
fix CancelEmergencyNotification
1 parent 2167785 commit 67e8cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pushover.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func (p *Pushover) GetRecipientDetails(recipient *Recipient) (*RecipientDetails,
222222
func (p *Pushover) CancelEmergencyNotification(receipt string) (*Response, error) {
223223
endpoint := fmt.Sprintf("%s/receipts/%s/cancel.json", APIEndpoint, receipt)
224224

225-
req, err := newURLEncodedRequest("GET", endpoint, map[string]string{"token": p.token})
225+
req, err := newURLEncodedRequest("POST", endpoint, map[string]string{"token": p.token})
226226
if err != nil {
227227
return nil, err
228228
}

0 commit comments

Comments
 (0)