Building a set of code samples to learn the @bsky.app API, and will occasionally update the thread here with links to those examples.
Repo is here:
https://github.com/skillstopractice/bsky-examples/
Repo is here:
https://github.com/skillstopractice/bsky-examples/
Comments
https://github.com/skillstopractice/bsky-examples/blob/main/ruby/profile.rb
Find DID given a handle:
https://github.com/skillstopractice/bsky-examples/blob/main/ruby/find_did.rb
Check relationship between two handles (following, followed by, mutual) :
https://github.com/skillstopractice/bsky-examples/blob/main/ruby/relationship.rb
https://github.com/skillstopractice/bsky-examples/blob/main/ruby/firehose.rb
( uses skyfall gem + similar example code from @mackuba.eu )
https://bsky.app/profile/skillstopractice.com/post/3lafgidyy252e
https://github.com/skillstopractice/bsky-examples/blob/main/ruby/domain_sampler.rb
(Throttled to 1 lookup per second to be respectful to the did->handle directory used)
. . .
PS: Welcome swifties!!!