{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/oauth2-github/issues/3","labels_url":"https://api.github.com/repos/thephpleague/oauth2-github/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/oauth2-github/issues/3/comments","events_url":"https://api.github.com/repos/thephpleague/oauth2-github/issues/3/events","html_url":"https://github.com/thephpleague/oauth2-github/issues/3","id":124559069,"number":3,"title":"Get e-mail address","user":{"login":"mindplay-dk","id":103348,"avatar_url":"https://avatars.githubusercontent.com/u/103348?v=3","gravatar_id":"","url":"https://api.github.com/users/mindplay-dk","html_url":"https://github.com/mindplay-dk","followers_url":"https://api.github.com/users/mindplay-dk/followers","following_url":"https://api.github.com/users/mindplay-dk/following{/other_user}","gists_url":"https://api.github.com/users/mindplay-dk/gists{/gist_id}","starred_url":"https://api.github.com/users/mindplay-dk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindplay-dk/subscriptions","organizations_url":"https://api.github.com/users/mindplay-dk/orgs","repos_url":"https://api.github.com/users/mindplay-dk/repos","events_url":"https://api.github.com/users/mindplay-dk/events{/privacy}","received_events_url":"https://api.github.com/users/mindplay-dk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"stevenmaguire","id":1851973,"avatar_url":"https://avatars.githubusercontent.com/u/1851973?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenmaguire","html_url":"https://github.com/stevenmaguire","followers_url":"https://api.github.com/users/stevenmaguire/followers","following_url":"https://api.github.com/users/stevenmaguire/following{/other_user}","gists_url":"https://api.github.com/users/stevenmaguire/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenmaguire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenmaguire/subscriptions","organizations_url":"https://api.github.com/users/stevenmaguire/orgs","repos_url":"https://api.github.com/users/stevenmaguire/repos","events_url":"https://api.github.com/users/stevenmaguire/events{/privacy}","received_events_url":"https://api.github.com/users/stevenmaguire/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-01-01T19:54:33Z","updated_at":"2016-01-08T07:17:06Z","closed_at":null,"body":"I was surprised to find that GitHub doesn't reveal the user's e-mail address as part of the profile itself - it appears the `email` field on the profile is `null`, maybe because GitHub defaults to also making your primary e-mail address private (?)\r\n\r\nI found this older PR which implemented this:\r\n\r\nhttps://github.com/thephpleague/oauth2-client/pull/189\r\n\r\nDid the GitHub provider in this library start from scratch, rather than from the existing provider?\r\n\r\nOr how come this feature isn't there?"},"comment":{"url":"https://api.github.com/repos/thephpleague/oauth2-github/issues/comments/169915076","html_url":"https://github.com/thephpleague/oauth2-github/issues/3#issuecomment-169915076","issue_url":"https://api.github.com/repos/thephpleague/oauth2-github/issues/3","id":169915076,"user":{"login":"mindplay-dk","id":103348,"avatar_url":"https://avatars.githubusercontent.com/u/103348?v=3","gravatar_id":"","url":"https://api.github.com/users/mindplay-dk","html_url":"https://github.com/mindplay-dk","followers_url":"https://api.github.com/users/mindplay-dk/followers","following_url":"https://api.github.com/users/mindplay-dk/following{/other_user}","gists_url":"https://api.github.com/users/mindplay-dk/gists{/gist_id}","starred_url":"https://api.github.com/users/mindplay-dk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindplay-dk/subscriptions","organizations_url":"https://api.github.com/users/mindplay-dk/orgs","repos_url":"https://api.github.com/users/mindplay-dk/repos","events_url":"https://api.github.com/users/mindplay-dk/events{/privacy}","received_events_url":"https://api.github.com/users/mindplay-dk/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T07:17:06Z","updated_at":"2016-01-08T07:17:06Z","body":"Oh, I see, this actually requires you to go beyond the OAuth API to the GitHub API - so it's beyond the scope of an OAuth client. Gotcha.\r\n\r\nI wonder how come GitHub don't expose basic profile data like your email address via OAuth like most other providers? "}}