Skip to main content

Google introduces new API beta that makes it easier for apps to integrate Gmail features

Gmail_IconYet another announcement from Google I/O today comes in the form of a new Gmail API beta that will make it easier for developers to integrate Gmail features into their apps:

While IMAP is great at what it was designed for (connecting email clients to email servers in a standard way), it wasn’t really designed to do all of the cool things that you have been working on, which is why this week at Google I/O, we’re launching the beta of the new Gmail API.

Designed to let you easily deliver Gmail-enabled features, this new API is a standard Google API, which gives RESTful access to a user’s mailbox under OAuth 2.0 authorization. It supports CRUD operations on true Gmail datatypes such as messages, threads, labels and drafts.

So what’s the benefit over IMAP or other solutions that developers have already been using to integrate Gmail features? Google says the new API, unlike IMAP, “gives fine-grained control to a user’s mailbox.” That means that an app, for example, “only needs to send mail on behalf of a user and does not need to read mail, you can limit your permission request to send-only.” There are also other benefits like speed:

To keep in sync, the API allows you to query the inbox change history, thereby avoiding the need to do “archaeology” to figure out what changed. Finally, a huge benefit is speed. While there’s still some tuning to be done (“beta” – remember?), results from our tests and feedback from pre-release developers suggest that the new Gmail API is delivering dramatic performance improvements over IMAP for web application use cases.

Google has more on the new API here. 

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Google — experts who break news about Google and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Google on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Comments

Author

Avatar for Jordan Kahn Jordan Kahn

Jordan writes about all things Apple as Senior Editor of 9to5Mac, & contributes to 9to5Google, 9to5Toys, & Electrek.co. He also co-authors 9to5Mac’s weekly Logic Pros series and makes music as one half of Toronto-based Makamachine.