- https://github.com/dsdanielpark/Bard-API (python)
- https://github.com/Allan-Nava/go-bard (go)
- https://github.com/ganeshk312/bard-go (go)
go get github.com/islu/bard-sdk-go
- Go to https://bard.google.com
- F12 for console
- Session: Application → Cookies → Copy the value of
__Secure-1PSID
cookie.
Simple Usage
package main
import "github.com/islu/bard-sdk-go/bard"
func main() {
bot, err := bard.NewChatbot("BARD_API_KEY")
if err != nil {
// log.Fatalln(err)
return
}
response := bot.Ask("your prompt")
}