在“发送”时提取'xhr'响应按钮在Gmail中被点击 [英] Fetch 'xhr' response when "Send" button is clicked in gmail

查看:154
本文介绍了在“发送”时提取'xhr'响应按钮在Gmail中被点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我希望在发送按钮时从xhr响应中的Chrome扩展中获取唯一的电子邮件ID被点击。我没有重写任何gmail功能。



我的计划是使用该电子邮件ID使用gmail api获取电子邮件。



当电子邮件发送并保存在我的系统中时,是否有其他方式可以获取电子邮件数据?



预先致谢!
$ b

解决方案

在搜索一周后,我得到了一种获取唯一电子邮件ID的方法。 b

发送电子邮件时,会显示一条链接 - 您的邮件已发送。查看邮件

查看邮件是一条链接。如果你检查这个链接,你会得到一个span元素。它有一个属性'param',其中包含emailID。



我从那里获取emailID并将其传递给gmail API以获取电子邮件数据。



我知道这不是一个永久的解决方案,但现在为我工作。
如果有人知道其他解决方案,请分享。

I am making CRM for Gmail.

I want to get the unique "email id" in my chrome extension from the "xhr" response when "Send" button is clicked. I have not overridden any gmail functionality.

My plan is to use that email id to get the email using gmail api.

Is there any other way by which I can get the email data when the email is sent and save it in my system?

Thanks in advance!

解决方案

After searching for a week, I got a way to get the unique emailID.

When email is sent, a link is displayed - "Your message has been sent. View message".

View Message is a link. If you inspect this link, you will get a span element. It has an attribute 'param', which contains the emailID.

I fetched emailID from there and passed it in request to gmail API to get the email data.

I know it is not a permanant solution, but working for me as of now. If someone knows some other solution, please share.

这篇关于在“发送”时提取'xhr'响应按钮在Gmail中被点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆