Permalink
Browse files

Example 15: A throw-away script demonstrating how to connect to a jab…

…ber server and request a buddy list.
  • Loading branch information...
1 parent 3ded9e9 commit 68296b687131de004f96befe753023b310a2c131 Dusty Phillips committed Jun 19, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 orkiv/sleekxmpp_buddylist.py
@@ -0,0 +1,10 @@
+import sleekxmpp, sys
+
+xmpp = sleekxmpp.ClientXMPP(sys.argv[1], sys.argv[2])
+
+xmpp.connect()
+xmpp.process()
+xmpp.send_presence()
+xmpp.get_roster()
+print(xmpp.client_roster.keys())
+xmpp.disconnect()

0 comments on commit 68296b6

Please sign in to comment.