XRD access

The WebFinger lookup process involves loading two XRD files. Under normal circumstances you don't need them, but if you have special needs you can access them in the reaction's $hostMetaXrd and $userXrd properties. They are NULL if the file could not be found, or the XRD not be loaded.

<?php
require_once 'Net/WebFinger.php';
$wf  = new Net_WebFinger();
$react $wf->finger('user@example.org');

foreach (
$react->hostMetaXrd as $link) {
    echo 
$link->rel ': ' $link->href "\n";
}
?>
Custom HTTP adapters (Previous) References (Next)
Last updated: Wed, 19 Jun 2013 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.