📜 ⬆️ ⬇️

Gmail api

Google decided to open access to the contents of Gmail mailboxes for third-party applications and introduced the Gmail APIs . According to Google, they are more convenient and safer than the IMAP protocol.

Gmail APIs provide access to individual resources, such as Threads , Messages , Labels , Drafts or History . For example, a third-party application can request access only to send letters (but not read), or only read (but not send), or only change labels for letters and conversations, or only search for specific emails and conversations.

Gmail is one of the most popular email services in the world. The exact number of users is unknown, but in 2012, Google estimated the audience at 425 million people, while noting that Gmail is the mail provider for 66 of the 100 largest universities in the world and 5 million commercial companies.

This means that Gmail is now probably the second platform in terms of the number of active users after Facebook, which should definitely attract application developers. Of course, creating applications based on the mail service seems strange, but Google wants to experiment.
')
The benefits of scanning the mailbox can get a variety of applications. For example, any program can automatically confirm email without forcing a person to click on the confirmation link. It is enough just to scan the inbox for the appearance of the corresponding text. Or, for example, the cost accounting program can automatically import checks from the Inbox folder indicating the items of expenditure and the amount spent in online stores. Or, the program may, on behalf of the user, send letters, in accordance with the specified conditions.

In addition, using the Gmail API, you can create various extensions for the standard Gmail web interface. For example, a button for “freezing” the “Inbox” folder for 30-60 minutes or a day or a week when a person does not want to be distracted. Here you can come up with a lot of ideas. Including you can do extensions that promote your own brand. For example, an extension that performs programmed actions when receiving a letter with predetermined content.

Although the developers open up new opportunities, but users will have to be more attentive to the issuance of permissions for access of third-party applications to personal information. However, in this respect, the Gmail APIs are safer than standard IMAP, because they can limit the authority of third-party programs to the necessary minimum.

API documentation
Gmail API client libraries (.NET, Java, JavaScript (beta), Objective-C, PHP (beta), Python, Go (alpha), Node.js (alpha), Ruby (alpha))

Source: https://habr.com/ru/post/227649/


All Articles