module WebFinger
Overview
A WebFinger client for Crystal.
Defined in:
web_finger.crweb_finger/client.cr
web_finger/result.cr
Class Method Summary
-
.query(address)
Returns the result of querying the specified address.
Class Method Detail
def self.query(address)
#
Returns the result of querying the specified address.
The address should conform to the 'acct' URI Scheme.
w = WebFinger.query("acct:[email protected]") # => #<WebFinger::Result:0x108d...>
w.link("http://webfinger.net/rel/profile-page").href # => "https://epiktistes.com/@toddsundsted"
Raises WebFinger::NotFoundError
if the address does not
exist. Otherwise, returns WebFinger::Result
.