1

I am wondering if anyone knows of a ruby version of Google's example python code (xoauth.py) to generate consumer oauth tokens? Preferably something that will connect well with gmail_xoauth or gMail for Ruby.

I've searched around a good amount and found some similar Stackoverflow questions in the past which don't give a clear enough answer unfortunately (eg: How to implement Gmail IMAP with Omniauth, Rails app, gmail gem, xoauth: How to grant access to a specific application?, How do I connect to Gmail's IMAP server using oauth in Rails3?)

Thanks!

Community
  • 1
  • 1
Aayush Kumar
  • 1,618
  • 1
  • 11
  • 31
  • see this: http://stackoverflow.com/questions/16843761/google-oauth-access-tokens/18452141#18452141 – Wiz Aug 26 '13 at 20:06

1 Answers1

1

I translated the Python code into Ruby to solve this. The details are in the following blog post. http://blog.asif.in/blog/2012/03/03/google-oauth-and-rails/

Asif Sheikh
  • 1,065
  • 2
  • 8
  • 18