(graphQLQuery: Query)
| 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, |