Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 418 Bytes

USAGE.md

File metadata and controls

27 lines (23 loc) · 418 Bytes
package main

import (
	"context"
	unkeygo "github.com/unkeyed/unkey-go"
	"log"
)

func main() {
	s := unkeygo.New(
		unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
	)

	ctx := context.Background()
	res, err := s.Liveness.V1Liveness(ctx)
	if err != nil {
		log.Fatal(err)
	}
	if res.Object != nil {
		// handle response
	}
}