How to real-time monitor the emails?

不问归期 提交于 2019-12-12 04:38:34

问题


Good day! I want to offer the implementation of google apps to my company. Also we have a need to reply on messages, that we recieve through our web-site in 10 minutes time limit. For this purpose our big team of sales managers a handling emails when they have a free time. So i want to write the script (web application) that will indicate all the income emails with countdown. Every sales manager could click on email and reply on it from web interface.

I wrote the program, that every 5 sec. take all the emails from special label (all these emails are drops in this label-folder). And when smbdy replies on it - it moves to another label.

But after couple of hours i receive the message that i am above the quota. As i see the daily qouta to read-write operations is 20 000k.

Is any ability to solve my problem? Increas quota? or maybe there are any another possibilities to monitor emails in real-time. Thank You!


回答1:


The Gmail API recently added push notifications via the google cloud pub/sub service. I wrote an example script on how to do this is Google Apps Script. You can view the code at:

https://github.com/Spencer-Easton/Apps-Script-Gmail-Push-Notifications




回答2:


This is directly from the documentation:

Gmail REST API Usage Limits

If you have enabled billing for your project, you can see the quota percentage for each API. You can view and change quotas from the API section's API Library and Enabled APIs links. Selecting an API from the API Library list or from the Enabled APIs page takes you to a page with overview, usage, and quota links for that API. Choosing Quota lets you view and change quota-related settings. Choosing Usage provides you with usage statistics as well as response code and method information.



来源:https://stackoverflow.com/questions/30733806/how-to-real-time-monitor-the-emails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!