views:

32

answers:

1

How can i send Chat invitation over GTalk using Google App Engine(Python), i was searching for code in documentation of GAE, but i didnt get it. As i am new to Python, please post me the code too...

+1  A: 

http://code.google.com/appengine/docs/python/xmpp/overview.html

from google.appengine.api import xmpp
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

class FooHandler(webapp.RequestHandler):
    def get(self):
        xmpp.send_invite('[email protected]')

application = webapp.WSGIApplication([('.*', FooHandler)], debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
Drew Sears
Thank you, @Drew Sears... for helping...
Harish Kurup