Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 425 Bytes

File metadata and controls

29 lines (24 loc) · 425 Bytes
package main

import (
	"context"
	sdkgo "github.com/documenso/sdk-go"
	"log"
	"os"
)

func main() {
	ctx := context.Background()

	s := sdkgo.New(
		sdkgo.WithSecurity(os.Getenv("DOCUMENSO_API_KEY")),
	)

	res, err := s.Envelopes.Get(ctx, "<id>")
	if err != nil {
		log.Fatal(err)
	}
	if res.Object != nil {
		// handle response
	}
}