Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • N node-ostatus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • node-ostatus
  • Wiki
  • Webfinger

Last edited by eschnou Mar 01, 2011
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Webfinger

here

lookup(identifier, callback);

Perform a lookup on an acct: uri identifier and return a JSON representation of the resource XRD.

Example:

var Ostatus = require('ostatus');
Ostatus.webfinger.lookup("acct:eschnou@identi.ca", function(err, result) {
  console.log(util.inspect(result));
});

Will output:

{ 
  subject: 'acct:eschnou@identi.ca',
  alias: 
   [ 'http://identi.ca/user/16106',
     'http://identi.ca/eschnou' ],
  links: 
   [ { href: 'http://identi.ca/eschnou',
       type: 'text/html',
       rel: 'http://webfinger.net/rel/profile-page' },
     { href: 'http://identi.ca/eschnou/hcard',
       type: 'text/html',
       rel: 'http://microformats.org/profile/hcard' }
   ]
}

hostXrd(host, callback)

this template

this could definitively be improved

Example:

Ostatus.webfinger.hostXrd("example.com", function(err, result) {
  console.log(result);
});

userXrd(subject, alias, links, callback)

this template

Example:

var links = [
     {
    	 rel:  "http://microformats.org/profile/hcard",
    	 href: "http://example.com/hcard/user"
     },
     {
    	 rel:  "salmon",
    	 href: "http://example.com/salmon/user"
     }
]
Ostatus.webfinger.userXrd("acct:user@example.com", "http://example.com/user", links, function(err, result) {
  console.log(result);
});
Clone repository
  • Activitystreams
  • Hcard
  • Home
  • Profile.js
  • Pubsubhubbub
  • Salmon
  • Status.js
  • Webfinger.js
  • Webfinger