MCPcopy Create free account
hub / github.com/asternic/wuzapi / checkIfSubscribedToEvent

Function checkIfSubscribedToEvent

wmiau.go:230–240  ·  view source on GitHub ↗
(subscribedEvents []string, eventType string, userId string)

Source from the content-addressed store, hash-verified

228 if len(eventarray) == 1 && eventarray[0] == "" {
229 subscribedEvents = []string{}
230 } else {
231 for _, arg := range eventarray {
232 arg = strings.TrimSpace(arg)
233 if arg != "" && Find(supportedEventTypes, arg) {
234 subscribedEvents = append(subscribedEvents, arg)
235 }
236 }
237 }
238
239 return subscribedEvents, nil
240}
241
242func getUserWebhookUrl(token string) string {
243 webhookurl := ""

Callers 1

sendEventWithWebHookFunction · 0.85

Calls 1

FindFunction · 0.85

Tested by

no test coverage detected