Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 601 Bytes

USAGE.md

File metadata and controls

33 lines (29 loc) · 601 Bytes
package main

import (
	"context"
	testgo "github.com/speakeasy-sdks/test-go/v3"
	"github.com/speakeasy-sdks/test-go/v3/pkg/models/shared"
	"log"
)

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

	ctx := context.Background()
	res, err := s.CreateUserv1(ctx, shared.UserInput{
		Country:   "Benin",
		Email:     "Della67@yahoo.com",
		Firstname: "Enrique",
		Lastname:  "Ernser",
		Nickname:  "<value>",
		Password:  "TOXx1B29WwlhtAA",
	})
	if err != nil {
		log.Fatal(err)
	}
	if res.User != nil {
		// handle response
	}
}