Get the GitHub profile data for a user.
var Github = require('machinepack-github');
// Get the GitHub profile data for a user.
Github.getUserDetails({
user: 'mikermcneil',
}).exec({
// An unexpected error occurred.
error: function (err) {
},
// OK.
success: function (result) {
},
});
The user or organization to look up (i.e. as it appears in the URL on GitHub)
'mikermcneil'
An unexpected error occurred.
OK.
{
username: 'mikermcneil',
isOrganization: false,
name: 'Mike McNeil',
email: '[email protected]',
avatarUrl: 'https://avatars.githubusercontent.com/u/618009?v=3',
blogUrl: 'http://balderdash.co',
githubProfileUrl: 'https://github.com/mikermcneil',
location: 'Austin, TX',
company: 'Balderdash',
bio: '',
numFollowers: 437,
numPublicRepos: 82,
numPublicGists: 122,
isHireable: true
}