Net::Op...:Service(3)

🌸 NAME 🌸

okay so welcome to Net::Op...:Service(3), a page from the User Contributed Perl Documentation crew. This is Net::OpenID::Yadis::Service β€” Class representing an XRDS Service element. Periodt. πŸ’…

✨ VERSION ✨

version 1.20 β€” yes bestie, that's the version. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the whole little group-chat demo, verbatim:

         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
         }

πŸ’œ DESCRIPTION πŸ’œ

After Net::OpenID::Yadis performs discovery, the result is a list of instances of this class. Lowkey that's the whole vibe: discovery happens, then you get a list of these Service objects. 🫢

πŸ‘‘ METHODS πŸ‘‘

  • $srv->priority β€” the priority value for the service. That's it, that's the priority. ⭐
  • $srv->Type β€” the URI representing the kind of service provided at the endpoint for this record. It's giving identifier energy. πŸ’–
  • $srv->URI β€” the URI of the service endpoint. Slay. πŸ”₯
  • $srv->extra_field( $fieldname , $namespace ) β€” fetch the value of extension fields not provided directly by this class. Ngl, this is the little bonus-field moment.

If $namespace is not specified, the default is the namespace whose name is the empty string. Yes, bestie, empty string is the default. πŸŽ€

See Net::OpenID::Yadis for author, copyright and licensing information. That's the whole section, no cap. πŸ’–

🌈 SEE ALSO 🌈


byeee πŸ’– this page is perl v5.42.0, dated 2016-02-13, and yes it's giving Net::Op...:Service(3) energy. Mwah. πŸ’…

πŸ“¦ where this page comes from