MCPcopy Create free account
hub / github.com/async-labs/builderbook / getAPI

Function getAPI

server/github.js:81–98  ·  view source on GitHub ↗
({ accessToken })

Source from the content-addressed store, hash-verified

79}
80
81function getAPI({ accessToken }) {
82 const github = new GithubAPI({
83 // debug: true,
84 timeout: 0,
85 baseUrl: 'https://api.github.com',
86 headers: {
87 accept: 'application/json',
88 },
89 requestMedia: 'application/json',
90 });
91
92 github.authenticate({
93 type: 'oauth',
94 token: accessToken,
95 });
96
97 return github;
98}
99
100function getRepos({ accessToken }) {
101 const github = getAPI({ accessToken });

Callers 3

getReposFunction · 0.70
getContentFunction · 0.70
getCommitsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected