- List - List all custom domains and their verification statuses for the workspace
List all custom domains and their verification statuses for the workspace
package main
import(
"context"
"log"
"github.com/speakeasy-sdks/hookdeck-go"
"github.com/speakeasy-sdks/hookdeck-go/pkg/models/shared"
"github.com/speakeasy-sdks/hookdeck-go/pkg/models/operations"
)
func main() {
s := hookdeck.New(
hookdeck.WithSecurity(shared.Security{
BasicAuth: &shared.SchemeBasicAuth{
Password: "",
Username: "",
},
}),
)
teamID := "cupiditate"
ctx := context.Background()
res, err := s.CustomDomains.List(ctx, teamID)
if err != nil {
log.Fatal(err)
}
if res.ListCustomDomainSchema != nil {
// handle response
}
}
Parameter | Type | Required | Description |
---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. |
teamID |
string | ✔️ | N/A |