func (api *API) EnableWebhook(addrHash hash.Hash, ID string) error {
	url := fmt.Sprintf("/account/%s/webhook/%s/enable", addrHash.String(), ID)
	body, statusCode, err := api.Post(url, []byte{})
	if err != nil {
		return err
	}

	if statusCode < 200 || statusCode > 299 {
		return errNoSuccess
	}

	if isErrorResponse(body) {
		return GetErrorFromResponse(body)
	}

	return nil
}
// EnableWebhook will enable a webhook
EnableWebhook will enable a webhook
// EnableWebhook will enable a webhook
func (api *API) EnableWebhook(addrHash hash.Hash, ID string) error {
	url := fmt.Sprintf("/account/%s/webhook/%s/enable", addrHash.String(), ID)
	body, statusCode, err := api.Post(url, []byte{})
	if err != nil {
		return err
	}
	if statusCode < 200 || statusCode > 299 {
		return errNoSuccess
	}
	if isErrorResponse(body) {
		return GetErrorFromResponse(body)
	}
	return nil
}
func ( api * API ) EnableWebhook ( addrHash hash . Hash , ID string ) error { url := fmt . Sprintf ( " " , addrHash . String ( ) , ID ) body , statusCode , err := api . Post ( url , [ ] byte { } ) if err != nil { return err } if statusCode < 200 || statusCode > 299 { return errNoSuccess } if isErrorResponse ( body ) { return GetErrorFromResponse ( body ) } return nil }
EnableWebhook will enable a webhook
EnableWebhook will enable a webhook