Module: Tinysky

Defined in:
lib/tinysky.rb,
lib/tinysky/client.rb,
lib/tinysky/version.rb

Defined Under Namespace

Classes: Client

Constant Summary collapse

ROOT_URL =
"https://bsky.social"
CREATE_RECORD_PATH =
"/xrpc/com.atproto.repo.createRecord"
CREATE_SESSION_PATH =
"/xrpc/com.atproto.server.createSession"
POST_LEXICON_TYPE =
"app.bsky.feed.post"
VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.generate_connectionObject



15
16
17
18
19
20
# File 'lib/tinysky.rb', line 15

def self.generate_connection
  Faraday.new(url: ROOT_URL) do |f|
    f.request :json
    f.response :json
  end
end