Net::Yadis::Object - a class of Yadis Resourse Descriptor's Service Object
use Net::Yadis::Discovery; my $disc = Net::Yadis::Discovery->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::Yadis::Discovery crawls Yadis URL, finds Yadis Resource Descriptor URL, and reads XRD file, you get this objects.
This field specified preferences for the service.
Returns URI or XRI type identifier of some version of some service.
Returns URI that resolves to a resource providing the service.
Accessor of extra service fields. Argument $namespace is optional, and if specified, can access to other xml namespace fields.
See Net::Yadis::Discovery for author, copyrignt and licensing information.
Net::Yadis::Discovery
Yadis website: http://yadis.org/
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Net::Yadis::Discovery, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Yadis::Discovery
CPAN shell
perl -MCPAN -e shell install Net::Yadis::Discovery
For more information on module installation, please visit the detailed CPAN module installation guide.