TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Gmail.js – JavaScript API for Gmail

202 pointsby rodrigocoelhoalmost 9 years ago

12 comments

jamies888888almost 9 years ago
I&#x27;ve written a couple of articles on the proper Gmail API, why doesn&#x27;t this just use that instead of scraping the DOM?<p><a href="https:&#x2F;&#x2F;www.sitepoint.com&#x2F;mastering-your-inbox-with-gmail-javascript-api&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.sitepoint.com&#x2F;mastering-your-inbox-with-gmail-ja...</a> <a href="https:&#x2F;&#x2F;www.sitepoint.com&#x2F;sending-emails-gmail-javascript-api&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.sitepoint.com&#x2F;sending-emails-gmail-javascript-ap...</a>
评论 #12130800 未加载
评论 #12132126 未加载
seibeljalmost 9 years ago
We used this for a project before, just be aware that the DOM changes regularly for gmail, and if an API you rely on breaks you will be SOL until someone fixes it.
评论 #12131086 未加载
评论 #12129654 未加载
评论 #12129325 未加载
评论 #12129184 未加载
nathancahillalmost 9 years ago
This is a great library. Standardizes most of DOM manipulation&#x2F;action triggering for everything Gmail does. Although Gmail&#x27;s DOM changes sometimes like seibelj pointed out, you&#x27;ll have the same issue if you roll your own implementation, so, for me, this is preferable.<p>If I remember right, it underwent a major rewrite a year or so ago, after which is has been very solid.
评论 #12131360 未加载
tedchsalmost 9 years ago
You may be interested to know Google has an official REST API and associated Javascript library. <a href="https:&#x2F;&#x2F;developers.google.com&#x2F;gmail&#x2F;api&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;gmail&#x2F;api&#x2F;</a> <a href="https:&#x2F;&#x2F;developers.google.com&#x2F;gmail&#x2F;api&#x2F;quickstart&#x2F;js" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;gmail&#x2F;api&#x2F;quickstart&#x2F;js</a>
redtrackkeralmost 9 years ago
InboxSDK (from Streak) is the best API to use for Gmail.
评论 #12129703 未加载
评论 #12129917 未加载
idbeholdalmost 9 years ago
Can the title be changed to indicate that this is only for userscripts and&#x2F;or browser add-ons&#x2F;extensions?
sdegutisalmost 9 years ago
Seems this is mainly meant for writing Chrome extensions.
apetrescalmost 9 years ago
Now for somebody to use this to write a Gmail extension that removes the hundred-levels-deep signature and reply chains that Outlook appends (and which evades Gmail&#x27;s currently reply-collapsing).
yeukhonalmost 9 years ago
I want to thank the author. Like many users, to repeat this project entirely on my own would be a nightmare. The GMail HTML source produced from the server is &quot;minified&quot;. Random, meaningless class and id names. Author took on the burden and made Gmail more accessible for browser extension&#x2F;add-on. I implemented a FireFox addon (for accessibility purpose for my senior thesis) using Gmail.js. Furthermore, the code is very readable and the API is extremely intuitive and well-designed. Thank you!
评论 #12132706 未加载
jonahxalmost 9 years ago
I skimmed the README, but it wasn&#x27;t clear to me what this does that the official Gmail API doesn&#x27;t do...
uyoakaomaalmost 9 years ago
Why are the advantages of using this API over other tools like Google App Script.
评论 #12131117 未加载
ycleptalmost 9 years ago
Would this not be against the terms of service :)