Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Net::XMPP2::Ext::VCard 0.13

    Download button

    No screenshots available
    Downloads: 327  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.6/5)
    16 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Robin Redeker | More programs
    Perl Artistic License / FREE
    June 12th, 2008, 15:31 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::XMPP2::Ext::VCard description

    Net::XMPP2::Ext::VCard is a Perl module that contains VCards (XEP-0054 & XEP-0084).

    Net::XMPP2::Ext::VCard is a Perl module that contains VCards (XEP-0054 & XEP-0084).

    SYNOPSIS

    use Net::XMPP2::Ext::VCard;

    my $vcard = Net::XMPP2::Ext::VCard->new;
    $con->reg_cb (
    stream_ready => sub { $vcard->hook_on ($con) }
    );

    $vcard->retrieve ($con, 'elmex@jabber.org', sub {
    my ($jid, $vcard, $error) = @_;

    if ($error) {
    warn "couldn't get vcard for elmex@jabber.org: " . $error->string . "n";
    } else {
    print "vCard nick for elmex@jabber.org: ".$vcard->{NICKNAME}."n";
    print "Avatar hash for elmex@jabber.org: ".$vcard->{_avatar_hash}."n";
    }
    });

    $vcard->store ($con, undef, { NICKNAME => 'net-xmpp2' }, sub {
    my ($error) = @_;
    if ($error) {
    warn "upload failed: " . $error->string . "n";
    } else {
    print "upload successfuln";
    }
    });

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Net::XMPP2 VCards | extended VCards | Perl module | Net::XMPP2 | VCard | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM