Official Go SDK for Midbound Cloud
go get github.com/Midbound/cloud-sdk-go
import ( midboundcloud "github.com/Midbound/cloud-sdk-go" "github.com/Midbound/cloud-sdk-go/option" ) client := midboundcloud.NewClient( option.WithWebhookSecret(os.Getenv("MIDBOUND_WEBHOOK_SECRET")), ) // Verify signature and parse event event, err := client.Webhooks.Unwrap(payload, r.Header) if err != nil { // Invalid signature } // Handle typed events switch v := event.AsAny().(type) { case midboundcloud.IdentityEnrichedWebhookEvent: person := v.Data.Enrichment.Person fmt.Println(person.FullName, person.LinkedinURL) }
Was this page helpful?
Contact support