hrobot-go
hrobot-go copied to clipboard
A Go library for the Hetzner Robot API https://robot.your-server.de/doc/webservice/en.html
hrobot-go: A Go library for the Hetzner Robot Webservice
Package hrobot-go is a library for the Hetzner Robot Webservice.
The library’s documentation is available at GoDoc, the public API documentation is available at robot.your-server.de.
Example
package main
import (
"fmt"
"log"
client "github.com/nl2go/hrobot-go"
)
func main() {
robotClient := client.NewBasicAuthClient("user", "pass")
servers, err := robotClient.ServerGetList()
if err != nil {
log.Fatalf("error while retrieving server list: %s\n", err)
}
fmt.Println(servers)
}