Google Cloud Platform Blog

Accessing Gmail accounts from App Engine with Context.IO

Monday, May 9, 2011
Share on Google+ Share on Twitter Share on Facebook
Google

6 comments :

  1. MichaelMay 9, 2011 at 11:23 AM

    How does this work for IMAP accounts? To access an IMAP server I would think you need sockets, which GMail doesn't support.

    ReplyDelete
    Replies
      Reply
  2. BrunoMay 9, 2011 at 12:05 PM

    Hi Michael. Context.IO will work great with standard IMAP accounts. Since it exposes the mailbox through HTTP calls, you basically by-pass the sockets limitation.

    To configure standard IMAP accounts, you still add the mailbox using the http://context.io/docs/1.1/imap/addaccount call instead of using OAuth, you set it up with credentials.

    ReplyDelete
    Replies
      Reply
  3. MichaelMay 9, 2011 at 12:59 PM

    Whoops! In my previous comment I meant to say that GAE doesn't support sockets, not that gmail doesn't. Given that, I'm guessing that Context.IO is not built on top of GAE, it's just meant for GAE developers.

    I logged in and this seems very cool. Will definitely investigate further when I get the chance.

    ReplyDelete
    Replies
      Reply
  4. huangweiMay 9, 2011 at 4:21 PM

    hi, why i can't be authed by oauth in google appengine apps when i send a post request with request body. but get request works. link http://stackoverflow.com/questions/5943562/oauth-issue-in-google-appengine-developing

    ReplyDelete
    Replies
      Reply
  5. SpikeMay 9, 2011 at 11:39 PM

    Traceback (most recent call last):
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 700, in __call__
    handler.get(*groups)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 68, in check_login
    handler_method(self, *args)
    File "/base/data/home/apps/contextio-demo/1.350227693224167483/imapoauth.py", line 87, in get
    gdocs.auth_token = gdocs.get_access_token(request_token)
    File "/base/data/home/apps/contextio-demo/1.350227693224167483/gdata/client.py", line 610, in get_access_token
    response, RequestError, response_body)
    RequestError: Unable to upgrade OAuth request token to access token: 400, The request token is invalid.

    ReplyDelete
    Replies
      Reply
  6. Kaipa KartikMay 17, 2011 at 12:33 AM

    How do I get the info if my application is deployed on Google App Engine with no domain. How do I register my application in that case and get the APPENGINE_CONSUMER_KEY = ''
    APPENGINE_CONSUMER_SECRET = ''
    Thanks a lot. I really need some help on this.

    ReplyDelete
    Replies
      Reply
Add comment
Load more...

  
Don't Miss Next '17

Use promo code NEXT1720 to save $300 off general admission

Free Trial

Free Trial

GCP Blogs

  • Big Data & Machine Learning
  • Kubernetes
  • GCP Japan Blog

Labels


  • Announcements 56
  • Big Data & Machine Learning 91
  • Compute 156
  • Containers & Kubernetes 36
  • CRE 7
  • Customers 90
  • Developer Tools & Insights 80
  • Events 34
  • Infrastructure 24
  • Management Tools 39
  • Networking 18
  • Open Source 105
  • Partners 63
  • Pricing 24
  • Security & Identity 23
  • Solutions 16
  • Stackdriver 19
  • Storage & Databases 111
  • Weekly Roundups 16


Archive


  •     2017
    • Feb
    • Jan
  •     2016
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2015
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2014
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2013
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2012
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2011
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2010
    • Dec
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2009
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2008
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr

Feed

Subscribe by email

Technical questions? Check us out on Stack Overflow.
Subscribe to our monthly newsletter.
Googleon Google+
Follow
Follow

Company-wide

  • Official Google Blog
  • Enterprise Blog
  • Student Blog

Products

  • Official Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Ads Developer Blog
  • Android Developers Blog
  • Developers Blog
  • Google
  • Privacy
  • Terms