MV3 - How to fetch email data from Gmail server in MV3 without using "Google API Javascript Client"

103 views
Skip to first unread message

Shashi kiran

unread,
Oct 5, 2023, 3:53:13 AM10/5/23
to Chromium Extensions
Hi All,
Scenario:
I have chrome extension built using MV2 which reads email / drive files from Gmail server using "Google API Javascript Client" javascript library for the same & it was working.

Need Clarification:
Now "Google API Javascript Client" library will not work due to loading of remote hosted code is not allowed in MV3. Google had documented the same in github link - https://github.com/google/google-api-javascript-client/blob/master/docs/start.md#:~:text=Supported%20environments

So could you let us know if there is any other way to read email / drive files from Gmail server in MV3.
Can I use Gmail REST API to fetch email data, if yes is there any implication / disadvantages to use in chrome extension MV3? (Gmail API Link - https://developers.google.com/gmail/api/reference/rest)

Please advice.

Thanks in Advance,
Shashikiran

Patrick Kettner

unread,
Oct 5, 2023, 3:57:11 AM10/5/23
to Shashi kiran, Chromium Extensions
Yes,  you can use the rest api. You can use anything that doesn't load code from a remote source. There are other, third party gmail libraries that exist, but there isn't another official client that I am aware of.

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/203b8bf4-cde0-4398-b22a-c83ac2cc6e6dn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages