team-telnyx

telnyx-seti-go

Access SETI (Space Exploration Telecommunications Infrastructure) APIs. This skill provides Go SDK examples.

team-telnyx 176 9 Updated 3mo ago
GitHub

Install

npx skillscat add team-telnyx/telnyx-skills/telnyx-seti-go

Install via the SkillsCat registry.

SKILL.md

Telnyx Seti - Go

Installation

go get github.com/team-telnyx/telnyx-go

Setup

import (
  "context"
  "fmt"
  "os"

  "github.com/team-telnyx/telnyx-go"
  "github.com/team-telnyx/telnyx-go/option"
)

client := telnyx.NewClient(
  option.WithAPIKey(os.Getenv("TELNYX_API_KEY")),
)

All examples below assume client is already initialized as shown above.

Retrieve Black Box Test Results

Returns the results of the various black box tests

GET /seti/black_box_test_results

	response, err := client.Seti.GetBlackBoxTestResults(context.TODO(), telnyx.SetiGetBlackBoxTestResultsParams{})
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", response.Data)