feat: add wakatime card (#392)

* Adds wakatime card route

* Adds language progress on wakatime card

* Adds wakatime card on README

* Adds no coding activity node

* Remove percent displayed on wakatime's card

* Update readme

* refactor: refactored code & added tests

Co-authored-by: Anurag <hazru.anurag@gmail.com>
This commit is contained in:
Willian Rodrigues
2020-09-19 12:53:39 +05:30
committed by GitHub
co-authored by Anurag
parent e377770a71
commit 6e73a0035d
7 changed files with 586 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
const axios = require("axios");
const fetchLast7Days = async ({ username }) => {
const { data } = await axios.get(
`https://wakatime.com/api/v1/users/${username}/stats/last_7_days?is_including_today=true`
);
return data.data;
};
module.exports = {
fetchLast7Days,
};