Skip to content Skip to sidebar Skip to footer

Including Gmail.js

I'm trying to include gmail.js from here. But the object gmsrc is invalid, the function get.user_email() fails. I'm trying to develop a Chrome extention, the chrome developer tools

Solution 1:

Gmail.js is a framework very useful for work around mail.google.com website as a plugin. You have to build the project first from https://github.com/josteink/gmailjs-node-boilerplate follow the readme and using node.js create the Chrome extension and play with it

Solution 2:

Looking to your code, the gmsrc variable is a reference to the script element created with the source from gmail.js not the Gmail script logic, that's why you're getting this error.

The correct way to use the API is to make the include (like you did) and after make some like:

var gmail = Gmail();
var name = gmail.get.user_email();
// Returns the user e-mail here;

Post a Comment for "Including Gmail.js"