Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 742 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 742 Bytes

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