An open API service indexing awesome lists of open source software.

https://github.com/itschip/tebexgo

TebexGo is a Go package that provides bindings to the Tebex Plugin API.
https://github.com/itschip/tebexgo

api-wrapper golang golang-module tebex

Last synced: over 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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

```go
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
}
```