Aayush Kumar
Aayush Kumar

Reputation: 1618

Generating gmail oauth tokens - xoauth.py in ruby?

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!

Upvotes: 1

Views: 509

Answers (1)

Asif Sheikh
Asif Sheikh

Reputation: 1063

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/

Upvotes: 1

Related Questions