sequencehq-go-sdk

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2025 License: MIT

README

sequencehq-go-sdk

Automatically generated SDK for https://www.sequencehq.com/

Usage && Examples

import sequence "github.com/attentiontech/sequencehq-go-sdk/pkg/sequence"

...

client, _ := sequence.NewSandboxClient(sequence.WithAPIKey(sequence.APIKey{
		ClientID:     "myclient",
		ClientSecret: "mysecret"},
	))
	ctx := context.Background()
	_, _ = client.PostSeatEventsWithResponse(ctx, &sequence.PostSeatEventsParams{}, sequence.PostSeatEventsJSONRequestBody{
		EventTimestamp: "2024-01-07T00:00:00Z",
		CustomerAlias:  "clientalias",
		SeatType:       "test",
		Total:          2,
	})

For production, use sequence.NewProductionEuropeClient.

See pkg/example_test.go

Updating

scripts/generate.sh

Test

go test ./...

Directories

Path Synopsis
pkg
sequence
Package sequence provides primitives to interact with the openapi HTTP API.
Package sequence provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL