https://github.com/omissis/go-geekbot-sdk
Golang SDK to interact with the Geekbot API.
https://github.com/omissis/go-geekbot-sdk
Last synced: 3 months ago
JSON representation
Golang SDK to interact with the Geekbot API.
- Host: GitHub
- URL: https://github.com/omissis/go-geekbot-sdk
- Owner: omissis
- License: apache-2.0
- Created: 2025-01-25T17:34:27.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-25T17:37:25.000Z (9 months ago)
- Last Synced: 2025-04-02T08:16:53.521Z (6 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Golang Geekbot SDK
This is an unofficial SDK for the [Geekbot API](https://geekbot.com/developers/).
## Example Usage
```go
import (
"fmt"
"time"v1 "github.com/omissis/asmctl/internal/geekbot/v1"
)var ErrCannotExecuteSuccessfully = fmt.Errorf("cannot execute successfully")
func main() {
httpClient := &http.Client{}
apiKey, ok := os.LookupEnv("GEEKBOT_API_KEY")
if !ok {
return "", fmt.Errorf("%w: GEEKBOT_API_KEY environment variable is required", ErrCannotExecuteSuccessfully)
}geekbotSDK := v1.NewSDK(httpClient, v1.DefaultBaseURL, apiKey)
oneWeekAgo := time.Now().AddDate(0, 0, -9).Truncate(24 * time.Hour).Unix()
reports, err := geekbotSDK.ListReports(v1.ListReportsFilters{After: &oneWeekAgo})
if err != nil {
return "", fmt.Errorf("%w: %w", ErrCannotExecuteSuccessfully, err)
}fmt.Printf("%+v\n", reports)
}
```## Implemented Endpoints
- [x] Team > List
- [ ] Report > Create
- [x] Report > List
- [x] Standup > List
- [ ] Standup > Read
- [ ] Standup > Create
- [ ] Standup > Update
- [ ] Standup > Replace
- [ ] Standup > Duplicate
- [ ] Standup > Delete
- [ ] Standup > Start