Github API
The Github API is a RESTful API that allows you to interact with Github programmatically. You can use it to create, read, update, and delete repositories, issues, pull requests, and more.
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://api.github.com/repos/buildmotion/github-motion',
headers: {
'Accept': 'application/vnd.github+json',
'X-GitHub-Api-Version': '2022-11-28',
'Authorization': 'Bearer EATEN_BY_A_GRUE'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});