package main
import (
"github.com/Riftbit/als-go-client"
"fmt"
"github.com/Riftbit/ALS-Go/httpmodels"
)
func main() {
conf := alsgoclient.Config{
Uri: "http://als.local:8080/",
Login: "ergoz",
Password: "ergoz",
IsAsync: false,
Timeout: 1000,
}
client, err := alsgoclient.New(conf)
if err != nil {
panic(err)
}
fmt.Println("=============================")
cats, _ := client.GetCategories()
for _, dat := range cats.CategoriesList {
fmt.Println(dat)
}
fmt.Println("=============================")
args := httpmodels.RequestLogGetLog{Category: "capi", Limit: 10}
result, _ := client.Get(args)
for _,data := range result.LogList {
fmt.Println(data.ID, "-", data.Message)
}
fmt.Println("=============================")
}
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
License
rb-go/als-go-client
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published