Net::OpenID::Yadis::Service
Class representing an XRDS Service element
- Provided by: libnet-openid-common-perl (Version: 1.20-1)
- Report a bug
Class representing an XRDS Service element
version 1.20
use Net::OpenID::Yadis;
my $disc = Net::OpenID::Yadis->new();
my @xrd = $disc->discover("http://id.example.com/") or Carp::croak($disc->err);
foreach my $srv (@xrd) { # Loop for Each Service in Yadis Resourse Descriptor
print $srv->priority; # Service priority (sorted)
print $srv->Type; # Identifier of some version of some service (scalar, array or array ref)
print $srv->URI; # URI that resolves to a resource providing the service (scalar, array or array ref)
print $srv->extra_field("Delegate","http://openid.net/xmlns/1.0");
# Extra field of some service
}
After Net::OpenID::Yadis performs discovery, the result is a list of instances of this class.
If $namespace is not specified, the default is the namespace whose name is the empty string.
See Net::OpenID::Yadis for author, copyright and licensing information.
Net::OpenID::Yadis
Yadis website: <http://yadis.org/>