Skip to content

Playing around with Javascript, gapi.client and Google APIs from a Chrome Extension

License

Notifications You must be signed in to change notification settings

OhNotreDame/MyG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyG

About

MyG is about working with Google APIs directly from a Google Extension. This extension is capable of getting data from Gmail API v1, Drive API v3, Tasks API v1 and very soon Contacts v3.

I'm not an expert (trust me I'm an engineer), I mainly work with SharePoint, discovering non MS technologies is very challenging. I can promise that there will be a ton of mistakes, hiccups and even non-sense. Feel free to show the (right) way.

Google APIs

Enabling Google APIs

  1. Open the Google Developer Console
  2. Create a new Project
  3. Create a new set of Credentials :
    1. Create a new API Key
    2. Create a new OAuth 2.0 client IDs (I used Chrome App, it seems to be enough)
  4. From the dashboard, enable the Google API for Drive and Gmail.

Loading API (Example for Google Tasks)

gapi.client.load('tasks', 'v1', renderTasks);

Documentation

I'll do my best to document the "why?".

You will find more information in the wiki pages :

References

  1. jquery
  2. bootstrap
  3. tablesorter
  4. Icons DB
  5. Icons 8

Inspired by

I look after this article https://www.sitepoint.com/mastering-your-inbox-with-gmail-javascript-api/

I had to made some changes to make sure it was working with the Google Chrome Extension.

Stay tuned.

Et gros bisous,

Ju!

About

Playing around with Javascript, gapi.client and Google APIs from a Chrome Extension

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published