Fetch 'xhr' response when “Send” button is clicked in gmail

后端 未结 1 1958
遥遥无期
遥遥无期 2021-01-26 10:11

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

相关标签:
1条回答
  • 2021-01-26 10:34

    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.

    0 讨论(0)
提交回复
热议问题