This one changes my status message on Google Talk

By Collin Anderson
import xmpp

def set_status(username, password, status):
    jabber = xmpp.Client('gmail.com')
    jabber.connect(server=('talk.google.com',5223))
    jabber.auth(username, password, 'python_status_message')
    jabber.send(xmpp.Iq(typ='set', queryNS='google:shared-status',
        payload=[xmpp.Node('status', payload=status)]))

Tags: , , , , , , , ,

One Response to “This one changes my status message on Google Talk”

  1. Sean Says:

    Any thoughts on how to read the status? I can’t seem to get a response back from a typ=’get’ xmpp.Iq

Leave a Reply