|
|
Webfinger is an HTTP based protocol whose aim is to discover information on resources represented by an email like identifier. More details on this protocol can be found [[here | http://code.google.com/p/webfinger/wiki/WebFingerProtocol]].
|
|
Webfinger is an HTTP based protocol whose aim is to discover information on resources represented by an email like identifier.
|
|
|
|
|
|
|
|
**Spec:** <http://code.google.com/p/webfinger/wiki/WebFingerProtocol>.
|
|
|
|
|
|
|
|
## lookup(identifier, callback);
|
|
## lookup(identifier, callback);
|
|
|
|
|
|
| ... | @@ -36,6 +38,7 @@ _this could definitively be improved_ |
... | @@ -36,6 +38,7 @@ _this could definitively be improved_ |
|
|
|
|
|
|
|
Example:
|
|
Example:
|
|
|
|
|
|
|
|
|
var Ostatus = require('ostatus');
|
|
|
Ostatus.webfinger.hostXrd("example.com", function(err, result) {
|
|
Ostatus.webfinger.hostXrd("example.com", function(err, result) {
|
|
|
console.log(result);
|
|
console.log(result);
|
|
|
});
|
|
});
|
| ... | @@ -46,6 +49,7 @@ Render the user's XRD with the provided Subject, Alias and Links. In practice, i |
... | @@ -46,6 +49,7 @@ Render the user's XRD with the provided Subject, Alias and Links. In practice, i |
|
|
|
|
|
|
|
Example:
|
|
Example:
|
|
|
|
|
|
|
|
|
var Ostatus = require('ostatus');
|
|
|
var links = [
|
|
var links = [
|
|
|
{
|
|
{
|
|
|
rel: "http://microformats.org/profile/hcard",
|
|
rel: "http://microformats.org/profile/hcard",
|
| ... | @@ -56,6 +60,7 @@ Example: |
... | @@ -56,6 +60,7 @@ Example: |
|
|
href: "http://example.com/salmon/user"
|
|
href: "http://example.com/salmon/user"
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
|
|
|
|
Ostatus.webfinger.userXrd("acct:user@example.com", "http://example.com/user", links, function(err, result) {
|
|
Ostatus.webfinger.userXrd("acct:user@example.com", "http://example.com/user", links, function(err, result) {
|
|
|
console.log(result);
|
|
console.log(result);
|
|
|
}); |
|
}); |