mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-03-11 01:02:43 +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) {
|
getMembers: function(pageNum) {
|
||||||
pageNum = pageNum || 0;
|
pageNum = pageNum || 0;
|
||||||
|
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise(function(resolve, reject) {
|
||||||
request
|
request
|
||||||
.get('https://api.github.com/orgs/koodiklinikka/public_members')
|
.get('https://api.github.com/orgs/koodiklinikka/members')
|
||||||
.query({page: pageNum})
|
.query({page: pageNum})
|
||||||
.set('Authorization', 'token ' + config.github.token)
|
.set('Authorization', 'token ' + config.github.token)
|
||||||
.end(function(error, response){
|
.end(function(error, response){
|
||||||
|
|||||||
Reference in New Issue
Block a user