Skip to content

Latest commit

 

History

History
executable file
·
58 lines (42 loc) · 1.92 KB

README.md

File metadata and controls

executable file
·
58 lines (42 loc) · 1.92 KB

CustomDomains

Available Operations

  • List - List all custom domains and their verification statuses for the workspace

List

List all custom domains and their verification statuses for the workspace

Example Usage

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
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
teamID string ✔️ N/A

Response

*operations.ListCustomDomainsResponse, error