pksunkara / octonode

github api v3 in nodejs
MIT License
1.19k stars 237 forks source link

Find another user's repositories #344

Closed francoZuniga32 closed 4 years ago

francoZuniga32 commented 4 years ago

Hi, I wanted to know if there is a way to search the repositories of another user. Try with:

var ghuser = client.user('Erick-2727');
     ghuser.repos((body) => {
     console.log(body);
});

donde client es un usuario creado con:

const github = require('octonode');
client = github.client(token);

if you could give me help it would be great

pksunkara commented 4 years ago

ghuser.repos is the correct way to do it. I can't help you if you don't print the errors you are getting.