Skip to content

TebexGo is a Go package that provides bindings to the Tebex Plugin API.

License

Notifications You must be signed in to change notification settings

itschip/tebexgo

Repository files navigation

TebexGo

Go package for the Tebex Plugin API

Note

Please note that all requests to the API must be sent via HTTPS

Prerequisites

Golang

Installing

go get github.com/itschip/tebexgo

Getting started

Retrieve a package by id

import (
  "fmt"

  "github.com/itschip/tebexgo"
)

func main() {
	// Creates a new session
	s := tebexgo.New("your_secret")
	
	// You should handle your error here
	pkg, err := s.GetPackage("package_id")
	
	fmt.Println(pkg.Name) // Prints out the package name
}

About

TebexGo is a Go package that provides bindings to the Tebex Plugin API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages