module WebFinger

Overview

A WebFinger client for Crystal.

Defined in:

web_finger.cr
web_finger/client.cr
web_finger/result.cr

Class Method Summary

Class Method Detail

def self.query(account, *args) #

Returns the result of querying for the specified account.

The account should conform to the 'acct' URI Scheme.

w = WebFinger.query("acct:toddsundsted@epiktistes.com") # => #<WebFinger::Result:0x108d...>
w.link("http://webfinger.net/rel/profile-page").href # => "https://epiktistes.com/@toddsundsted"

Raises WebFinger::NotFoundError if the account does not exist and WebFinger::RedirectionError if redirection fails. Otherwise, returns WebFinger::Result.


[View source]