mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-01-26 03:34:03 +00:00
return all members from members api
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user