go get github.com/GetStream/getstream-go/v3
Activity Feeds V3 is in closed alpha — do not use it in production (just yet).
Installation
GitHub repository: https://github.com/GetStream/getstream-go. Feel free to submit bug reports and feature requests.
The package is tested against these environments:
- Go 1.19+
- Go 1.20+
- Go 1.21+
To create a client, you’ll need your API key and secret. Both of them can be found in your Stream Dashboard.
You can optionally pass a timeout for the API requests, the default timeout is 6000ms.
package main
import (
"context"
"log"
"time"
"github.com/GetStream/getstream-go/v3"
)
func main() {
apiKey := ""
secret := ""
client, err := getstream.NewClient(apiKey, secret)
if err != nil {
log.Fatal(err)
}
// optionally add timeout to API requests
// the default timeout is 6000ms
client, err = getstream.NewClient(apiKey, secret, getstream.WithTimeout(3*time.Second))
if err != nil {
log.Fatal(err)
}
// Get the feeds client
feedsClient := client.Feeds()
ctx := context.Background()
// Your feeds operations here...
}
- I'm working with the Stream Feeds Go SDK and would like to ask questions about this documentation page: https://getstream.io/activity-feeds/docs/go-golang/installation.md
- View as markdown
- Open in ChatGPT
- Open in Claude