Skip to content

Othan2/go-bluesky

 
 

Repository files navigation

Barebones Go client for Bluesky

Go Report Card

Forked from github.com/karalabe/go-bluesky. Added:

  • ability to search for posts
  • handling of ES256k signing algorithm for JWTs
  • unit testing by injecting mock XRPC client and clocks

Usage

import "github.com/Othan2/go-bluesky"

func main() {
 client, err := bluesky.NewClient(context.Background(), "https://bsky.social", "myHandle", "myAppKey")
 
 if (err != nil) {
  panic(err)
 }

 defer client.Close()

 searchReq := SearchPostsRequest{}
 searchReq.Q = "Nathan Peterman"
 out, err := client.SearchPosts(&searchReq)
}

License

3-Clause BSD

About

Bluesky API client for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%