Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to interact with Gmail using AJAX (Javascript)? [closed]

I would like to build my own interface for gmail, by programatically interacting with the actual Gmail service and pipe all requests on my service to gmail itself.

The user would have to login to his or her gmail account, after which my app needs to be able to interact with the gmail service.

Is there an API available for Javascript that would allow me to do this?

Any other related feedback is appreciated as well. Thanks.

Update: one site that might have done what I am trying to do would be otherinbox.com, unless they proxy all e-mail through their own servers (this is something I do not wish to do, as I want people to interact with gmail directly through a Javascript API).

like image 334
Tom Avatar asked Feb 25 '23 04:02

Tom


1 Answers

If you can do everything you want as a browser plugin on top of Gmail, by monitoring and observing what goes on, you might want to take a look at this. It won't quite do what you're asking for, but it gets you somewhere along the path.

Gmailr

Unfortunately, you're probably going to need a server. Even if you could work around the cross-domain issues, Gmail's interface is basically built dynamically with JavaScript when the page loads. So the JavaScript function names will be changing on you literally all the time.

Just about everybody doing anything like what you're describing (we provide an alternative interface to Gmail as well at emailga) has gone this route. I know the OtherInbox guys as well, and they have a server component that uses the IMAP interface to do most of their magic.

like image 117
alex83 Avatar answered Apr 28 '23 11:04

alex83