Setting or reading the recovery email address in Gmail programmatically

Go To StackoverFlow.com

1

Is it possible to read or set the recovery email address in Gmail programmatically? For example via OAuth.

I need to do this for a web app in Ruby on Rails.

2012-04-04 07:58
by Andrea


1

Yes, you can do it via web page requests, using a gem e.g. mechanize or system tool e.g. curl.

https://support.google.com/mail/bin/answer.py?hl=en&answer=6566

As far as I know, there's no API way to change it for a normal gmail user.

Google Apps users may have additional capabilities, and so do Google Apps admins, and if you're able to use these then read about admins and provisioning here:

https://developers.google.com/google-apps/email-settings/?hl=en

Retrieving the domain administrator's secondary email address is possible via HTTP:

http://code.google.com/apis/apps/admin_settings/docs/1.0/admin_settings_developers_guide_protocol.html#RetrievingAdminSecondEmail

So is changing the domain administrator's secondary email address; see the same link above.

2012-04-04 08:07
by joelparkerhenderson
thank you - for normal Gmail, is there a Ruby gem you advise using for web page requests - Andrea 2012-04-04 08:55
or some basic examples I could understand and modify (I'm a beginner - Andrea 2012-04-04 09:02
Yes, the ruby-gmail gem is good for signing in, retrieving mail, etc - joelparkerhenderson 2012-04-04 09:10
To automate the web page browsing to do the get/set of the recovery email, I suggest mechanize - joelparkerhenderson 2012-04-04 09:11
Ads