See https://developers.google.com/gmail/api/quickstart/js to set this up with your own ClientID's and API Keys. You won't need to be approved by google or anything ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results