|
před 9 roky | |
---|---|---|
lib | před 9 roky | |
spec | před 9 roky | |
.rspec | před 9 roky | |
.ruby-version | před 9 roky | |
Gemfile | před 9 roky | |
Gemfile.lock | před 9 roky | |
LICENSE | před 9 roky | |
README.md | před 9 roky | |
goldfinger.gemspec | před 9 roky |
A Webfinger client for Ruby. Supports application/xrd+xml
and application/jrd+json
responses. Raises Goldfinger::NotFoundError
on failure to fetch the Webfinger or XRD data, or Goldfinger::SSLError
if something is wrong with the HTTPS connection it uses.
gem install goldfinger
data = Goldfinger.finger('acct:gargron@quitter.no')
data.link('http://schemas.google.com/g/2010#updates-from').href
# => "https://quitter.no/api/statuses/user_timeline/7477.atom"
data.aliases
# => ["https://quitter.no/user/7477", "https://quitter.no/gargron"]
data.subject
# => "acct:gargron@quitter.no"
The official Webfinger RFC is 7033.