This commit is contained in:
2025-04-07 22:23:36 +10:00
parent 3d28910178
commit fb58744928
78 changed files with 172 additions and 213 deletions

View File

@@ -18,7 +18,7 @@ func NewWebhooks(request func(URL string, dataBody any) (*resty.Response, error)
}
}
func (a *Webhooks) Register(endpoint EndpointName, secret, callbackUrl string) error {
func (a *Webhooks) Register(endpoint Name, secret, callbackUrl string) error {
dataBody := url.Values{}
dataBody.Set("url", callbackUrl)
dataBody.Set("secret", secret)