Setting Google Talk status (with authentication) from Google App Engine

I'm trying to build a site that updates users' Google Talk statuses from Google App Engine using the built in XMPP Python API (or a third-party one, if one works better than another). I've been looking around for some examples or docs explaining how I would go about doing this, but nothing I find seems to offer a fully functional solution.

App Engine's XMPP Python developer docs suggest that updating a status can be done through the send_presence() method (see here):

xmpp.send_presence(to_jid, status="My app's status")

But, how would this be authenticated? Wouldn't I have to send the users password with the request? (Ideally, I'd like to do so using OAuth as suggested here.) Am I misunderstanding something?

Please excuse me if I'm missing something obvious, here. I'm pretty new to both Google App Engine and XMPP. Unlike a lot of examples I've found online, I don't want to create a chat "robot"; I merely want to change an existing user's Google Talk status. Thanks in advance for any pointers!


You can't change someone else' status using the XMPP API.

You can use the XMPP API to represent yourself, or your users (see the description of XMPP addresses in the GAE XMPP API docs).

You cannot send messages or update the status of a gmail user.

链接地址: http://www.djcxy.com/p/70336.html

上一篇: 访问Google Talk聊天记录

下一篇: 从Google App Engine设置Google Talk状态(通过身份验证)