return all members from members api

This commit is contained in:
Riku Rouvila
2015-11-26 21:29:30 +02:00
parent 1e87c651d7
commit 2917ffd55a

View File

@@ -37,14 +37,14 @@ var githubService = {
});
},
/**
* Fetch all the public members of the GitHub organization
* Fetch all members of the GitHub organization
*/
getMembers: function(pageNum) {
pageNum = pageNum || 0;
return new Promise(function(resolve, reject) {
request
.get('https://api.github.com/orgs/koodiklinikka/public_members')
.get('https://api.github.com/orgs/koodiklinikka/members')
.query({page: pageNum})
.set('Authorization', 'token ' + config.github.token)
.end(function(error, response){