Skip to content

Commit e6ef065

Browse files
author
Benjamin Bours
committed
initial commit
0 parents  commit e6ef065

12 files changed

+3585
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.vscode/settings.json

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

football-data.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const axios = require('axios');
2+
3+
axios.get("http://api.football-data.org/v2/competitions/2102", {
4+
headers: {
5+
'X-Auth-Token': 'f8c4f8d2292c47699a22dc05e5afc3c4',
6+
}
7+
})
8+
.then((response) => {
9+
console.log(response.data.competitions);
10+
})
11+
.catch(function (error) {
12+
console.log(error);
13+
});

0 commit comments

Comments
 (0)