webfinger-client: WebFinger client library

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

This is a client library for querying a WebFinger resource and parsing the response.


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.2.0.0, 0.2.1.0, 0.2.1.0, 0.2.2.0
Change log ChangeLog
Dependencies aeson (>=2.2.3 && <2.3), base (>=4.17.2 && <4.18), bytestring (>=0.11.5 && <0.12), data-default-class (>=0.2.0 && <0.3), hashable (>=1.4.7 && <1.5), http-client (>=0.7.18 && <0.8), http-client-tls (>=0.3.6 && <0.4), http-types (>=0.12.4 && <0.13), link-relations (>=0.1.1 && <0.2), text (>=2.0.2 && <2.1), unordered-containers (>=0.2.20 && <0.3), uri-bytestring (>=0.4.0 && <0.5) [details]
License LicenseRef-PublicDomain
Copyright ♡ Copying is an act of love. Please copy, reuse and share.
Author fr33domlover
Maintainer fr33domlover@riseup.net, vpark45@gmail.com
Category Network, Web
Home page http://hub.darcs.net/vincent/webfinger-client
Bug tracker http://hub.darcs.net/vincent/webfinger-client/issues
Source repo head: darcs get http://hub.darcs.net/fr33domlover/webfinger-client
Uploaded by JoonkyuPark at 2025-05-05T11:54:16Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for webfinger-client-0.2.1.0

[back to package description]

See the .cabal file for more info and link to project website the version control.

The official download location is Hackage:

http://hackage.haskell.org/package/webfinger-client

This library is free software, and is committed to software freedom. It is released to the public domain using the CC0 Public Domain Dedication. For the boring "legal" details see the file 'COPYING'.

See the file 'INSTALL' for hints on installation. The file 'ChangeLog' explains how to see the history log of the changes done in the code. 'NEWS' provides a friendly overview of the changes for each release.

Example Usage

Here is a simple example of how to use the webfinger-client library:

{-# LANGUAGE OverloadedStrings #-}

module Main where

import Data.Default
import Web.Finger.Client

query :: Query
query = def { qryTarget = resource }
  where
    resource = ResAccount (Account "curry" "hackers.pub")

main :: IO ()
main = do
  manager <- newManager
  result <- webfinger manager query
  print result

This code uses the WebFinger protocol to query information about a specified resource and prints the result. The qryTarget is set to an Account, and in this example, it queries the account "curry" on the domain hackers.pub.