How to fetch email address of all my group members? #24527
-
Dear Team, I tried with /users/<userid>, /emails, /public_emails/ and few other API end urls, but nothing fruitful. Even after all my group members added their public email, these API calls returns their email address as empty, null. Is that allowed/possible to retrive all my group members mail ids with any API ? or the APIs are just to get/set only my profile details ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, I am able to retrieve your email address using REST API WARNING: You only see publicly visible email addresses when authenticated with GitHub. |
Beta Was this translation helpful? Give feedback.
Hi,
I am able to retrieve your email address using REST API
https://api.github.com/users/seetharamanjkpt
WARNING: You only see publicly visible email addresses when authenticated with GitHub.
So, if if call the above URL unauthenticated, email address is null
Performing the same authenticated (passing access token for example), the email is shown
For more information, on Authentication (https://developer.github.com/v3/#authentication).