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.
- Host: GitHub
- URL: https://github.com/itschip/tebexgo
- Owner: itschip
- License: mit
- Created: 2022-03-12T20:42:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-08T16:26:02.000Z (over 3 years ago)
- Last Synced: 2025-03-20T03:15:02.889Z (over 1 year ago)
- Topics: api-wrapper, golang, golang-module, tebex
- Language: Go
- Homepage: https://pkg.go.dev/github.com/itschip/tebexgo
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
```