开发者

To send Chat Invitation, to GTalk using Google App Engine(Python)? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_运维问答 Closed 10 years ago.

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...


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('example@gmail.com')

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

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜