Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created February 27, 2018 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmussak/fed0793143e4c6e7328041bb3e2f1feb to your computer and use it in GitHub Desktop.
Save vmussak/fed0793143e4c6e7328041bb3e2f1feb to your computer and use it in GitHub Desktop.
module.exports = {
buscarRepositoriosDo
}
const request = require('request-promise');
async function buscarRepositoriosDo(user) {
const options = {
uri: `https://api.github.com/users/${user}/repos`,
headers: {
'User-Agent': 'Request-Promise'
},
json: true
};
let repositories = await request(options);
return repositories;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment