https://github.com/traptitech/go-traq
Go client library for the traQ API.
https://github.com/traptitech/go-traq
traq
Last synced: about 1 month ago
JSON representation
Go client library for the traQ API.
- Host: GitHub
- URL: https://github.com/traptitech/go-traq
- Owner: traPtitech
- License: mit
- Created: 2019-07-03T06:18:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-07T23:57:26.000Z (about 1 month ago)
- Last Synced: 2025-04-09T21:51:03.245Z (about 1 month ago)
- Topics: traq
- Language: Shell
- Homepage:
- Size: 892 KB
- Stars: 4
- Watchers: 11
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-traq
[![Go Reference][godoc-badge]][godoc] [![CI][ci-badge]][ci] [![Update][update-badge]][update]
[godoc]: https://pkg.go.dev/github.com/traPtitech/go-traq
[godoc-badge]: https://pkg.go.dev/badge/github.com/traPtitech/go-traq.svg
[ci]: https://github.com/traPtitech/go-traq/actions/workflows/main.yaml
[ci-badge]: https://github.com/traPtitech/go-traq/actions/workflows/main.yaml/badge.svg
[update]: https://github.com/traPtitech/go-traq/actions/workflows/release.yaml
[update-badge]: https://github.com/traPtitech/go-traq/actions/workflows/release.yaml/badge.svgA client library for the traQ API.
This package is updated automatically.
## How to use
See [client.md](./client.md) and [docs/](./docs/) for more information.
```shell
go get github.com/traPtitech/go-traq
``````go
package mainimport (
"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)
}
```