Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 21. júl 2024

Súbor: [Platon] / sendxmpp / examples / sendxmpp-raw-messages (stiahnutie)

Revízia 1.2, Sun Oct 28 14:37:23 2012 UTC (11 years, 8 months ago) by rajo


Zmeny od 1.1: +1 -1 [lines]

Changed homepage to http://sendxmpp.hostname.sk and CVS migrated to Git: https://github.com/lhost/sendxmpp

#
# RAW XMPP messages, which can be used with sendxmpp
#
# Thanks to David Ammouial <da AT weeno.net>
#
# cat examples/send-url.xml | sendxmpp --raw
#

# Sending an URL along with a message:
<message to='foo@server.com'>
    <body>Check out the new sendxmpp website!</body>
    <x xmlns='jabber:x:oob'>
        <url>http://sendxmpp.hostname.sk/</url>
    </x>
</message>

# Adding an item to the roster
<iq type="set" id="a1">
    <query xmlns="jabber:iq:roster">
        <item jid="newfriend@hello.com" name="Lisa" />
    </query>
</iq>

# Sending a presence subscription request
<presence to="newfriend@hello.com" type="subscribe">
    <status>Please authorize me :)</status>
</presence>


Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok