Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 527 Bytes

USAGE.md

File metadata and controls

31 lines (26 loc) · 527 Bytes
package main

import (
	"context"
	boltalphaspec "github.com/speakeasy-sdks/bolt-alpha-spec"
	"github.com/speakeasy-sdks/bolt-alpha-spec/pkg/models/shared"
	"log"
	"net/http"
)

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

	ctx := context.Background()
	res, err := s.Pets.CreatePets(ctx, shared.Pet{
		ID:   596804,
		Name: "<value>",
	})
	if err != nil {
		log.Fatal(err)
	}

	if res.StatusCode == http.StatusOK {
		// handle response
	}
}