Gmail API

Diem Do

What is the Gmail API?

 

 

 

The Gmail API gives you flexible, RESTful access to the user’s inbox, with a natural interface to Threads,Messages, Labels, Drafts, and History..From the modern language of your choice, your app can use the API to add Gmail features like:

  • Read messages from Gmail
  • Send email messages
  • Modify the labels applied to messages and threads
  • Search for specific messages and threads

All you need to use the Gmail API is the  client library  for your choice of language and an app that canauthenticate as a Gmail user.

 

Note: The Gmail API should not be used to replace IMAP for full-fledged email client access. Instead, see IMAP and SMTP.

 

Typical use cases

 

The Gmail API can be used in a variety of different applications, including, typically:

  • Read-only mail extraction, indexing, and backup
  • Label management (add/remove labels)
  • Automated or programmatic message sending

See the API overview for a general description of the API and its use. For detailed information on the API’s resources and methods, refer to the Gmail API Reference.

 

How do I find out more?

 

Use this documentation to start building a Gmail app today:

  • The client libraries are available for download in several languages and simplify making API requests.
  • The quickstart is available in a variety of programming languages, to let you get something working right away.
  • The developer guide topics help you better understand how to implement particular use cases.
  • The API reference gives you details on every resource and method in the Gmail API.

 

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies.

 

 

 

 

 

 

Share the news now

Source : developers.google.com