{"action":"created","issue":{"url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/347","repository_url":"https://api.github.com/repos/KartikTalwar/gmail.js","labels_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/347/comments","events_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/347/events","html_url":"https://github.com/KartikTalwar/gmail.js/issues/347","id":192888769,"number":347,"title":"npm package import","user":{"login":"gidsi","id":7644803,"avatar_url":"https://avatars.githubusercontent.com/u/7644803?v=3","gravatar_id":"","url":"https://api.github.com/users/gidsi","html_url":"https://github.com/gidsi","followers_url":"https://api.github.com/users/gidsi/followers","following_url":"https://api.github.com/users/gidsi/following{/other_user}","gists_url":"https://api.github.com/users/gidsi/gists{/gist_id}","starred_url":"https://api.github.com/users/gidsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gidsi/subscriptions","organizations_url":"https://api.github.com/users/gidsi/orgs","repos_url":"https://api.github.com/users/gidsi/repos","events_url":"https://api.github.com/users/gidsi/events{/privacy}","received_events_url":"https://api.github.com/users/gidsi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-01T16:08:03Z","updated_at":"2016-12-12T06:45:13Z","closed_at":null,"body":"Having a problem with the npm package.\r\n\r\nIf im trying this:\r\n```\r\nimport GmailFactory from 'gmail-js';\r\n\r\nconst Gmail = GmailFactory.Gmail();\r\n\r\nGmail.observe.on('open_email', function(arg1) {\r\n\tconsole.log(arg1);\r\n\tconsole.log(Gmail.get.email_data(arg1));\r\n});\r\n\r\nGmail.observe.on('load', () => {\r\n\tconsole.log('loaded');\r\n        console.log(Gmail.get.user_email());\r\n}\r\n```\r\n\r\nGives me a \"loaded\" and undefined log, the other listener isn't firing at all when i'm browsing around.\r\n\r\nIs it a bug or am i doing something horribly wrong? Is it supposed to work that way?"},"comment":{"url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/comments/266354824","html_url":"https://github.com/KartikTalwar/gmail.js/issues/347#issuecomment-266354824","issue_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/347","id":266354824,"user":{"login":"josteink","id":411338,"avatar_url":"https://avatars.githubusercontent.com/u/411338?v=3","gravatar_id":"","url":"https://api.github.com/users/josteink","html_url":"https://github.com/josteink","followers_url":"https://api.github.com/users/josteink/followers","following_url":"https://api.github.com/users/josteink/following{/other_user}","gists_url":"https://api.github.com/users/josteink/gists{/gist_id}","starred_url":"https://api.github.com/users/josteink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josteink/subscriptions","organizations_url":"https://api.github.com/users/josteink/orgs","repos_url":"https://api.github.com/users/josteink/repos","events_url":"https://api.github.com/users/josteink/events{/privacy}","received_events_url":"https://api.github.com/users/josteink/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T06:45:13Z","updated_at":"2016-12-12T06:45:13Z","body":"Any news on this?\r\n\r\nIf no feedback is received soon, this issue will be closed assuming everything works as it should (especially since it works for me in all my use-cases :)."}}
{"actor":{"display_login":"josteink"}}