Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 539 Bytes

USAGE.md

File metadata and controls

29 lines (25 loc) · 539 Bytes
package main

import (
	"context"
	testwithoutwebhooksgosdk "github.com/speakeasy-sdks/test-without-webhooks-go-sdk"
	"github.com/speakeasy-sdks/test-without-webhooks-go-sdk/pkg/models/shared"
	"log"
)

func main() {
	s := testwithoutwebhooksgosdk.New()

	ctx := context.Background()
	res, err := s.PostSendPet(ctx, &shared.Pet1{
		ID:   794362,
		Name: "<value>",
	})
	if err != nil {
		log.Fatal(err)
	}
	if res != nil {
		// handle response
	}
}