MCPcopy Create free account
hub / github.com/Ashutosh00710/github-readme-activity-graph / fetch

Method fetch

src/fetcher.ts:41–50  ·  view source on GitHub ↗
(graphQLQuery: Query)

Source from the content-addressed store, hash-verified

39 }
40
41 private async fetch(graphQLQuery: Query): Promise<AxiosResponse<ResponseOfApi>> {
42 return axios({
43 url: 'https://api.github.com/graphql',
44 method: 'POST',
45 headers: {
46 Authorization: `bearer ${process.env.TOKEN}`,
47 },
48 data: graphQLQuery,
49 });
50 }
51
52 public async fetchContributions(
53 days: number,

Callers 1

fetchContributionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected