在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:grubersjoe/github-contributions-api开源软件地址:https://github.com/grubersjoe/github-contributions-api开源编程语言:TypeScript 98.4%开源软件介绍:GitHub Contributions API v4A simple API that returns number of GitHub contributions based on a users GitHub profile. This API is used by React GitHub Calendar (React component). How to runyarn
yarn start For development: yarn dev UsageSend a GET request to the API in the following format: https://github-contributions-api.jogruber.de/v4/GITHUB_USERNAME And you will receive an object with complete history of that user's contributions (total per year and for each day): {
"total": {
"2020": 492,
...
},
"contributions": [
{
"date": "2020-01-01",
"count": 0,
"level": 0
},
{
"date": "2020-01-02",
"count": 9,
"level": 4
},
{
"date": "2020-01-03",
"count": 5,
"level": 2
},
...
]
} You can return the results as an object keyed by year, month and day by using
the https://github-contributions-api.jogruber.de/v4/GITHUB_USERNAME?format=nested {
"2020": {
"1": {
"1": {
"date": "2020-01-01",
"count": 9,
"level": 4
},
"2": {
"date": "2020-01-02",
"count": 5,
"level": 2
},
"3": {
"date": "2020-01-03",
"count": 0,
"level": 0
},
...
},
...
}
}
The |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论