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: gchat, google, gtalk, jabber, python, status, talk, xmpp, xmpppy
October 16, 2008 at 12:11 am |
Any thoughts on how to read the status? I can’t seem to get a response back from a typ=’get’ xmpp.Iq
August 31, 2011 at 2:45 am |
How to set invisible status?
jabber.send(Iq(typ=’set’,
queryNS=’google:shared-status’,
payload=[Node('invisible',
attrs={'value':'true'}),
],
)
)
Could not be set above.
Please tell me the right way.
August 31, 2011 at 6:37 am |
I don’t know. I tried making myself invisible 3 years ago using that method and I couldn’t get it to work either. Let me know if you figure it out.