repositorypackage
0.0.0-20240725071454-97c7b85dc879
Repository: https://github.com/traptitech/go-traq.git
Documentation: pkg.go.dev
# README
go-traq
A client library for the traQ API.
This package is updated automatically.
How to use
See client.md and docs/ for more information.
go get github.com/traPtitech/go-traq
package main
import (
"context"
"fmt"
traq "github.com/traPtitech/go-traq"
)
const TOKEN = "/* your token */"
func main() {
client := traq.NewAPIClient(traq.NewConfiguration())
auth := context.WithValue(context.Background(), traq.ContextAccessToken, TOKEN)
v, _, _ := client.ChannelApi.
GetChannels(auth).
IncludeDm(true).
Execute()
fmt.Printf("%#v", v)
}