A simple API that returns number of GitHub contributions
request
https://leaf-contributions.herokuapp.com/user/{github name}
receive
{
"years": [
{
"year": "2020",
"total": 558,
"range": {
"start": "2020-01-01",
"end": "2020-12-31"
}
},
...
],
"contributions": [
{
"date": "2020-01-01",
"count": 2,
"color": "#9be9a8"
},
{
"date": "2020-01-02",
"count": 1,
"color": "#9be9a8"
},
{
"date": "2020-01-03",
"count": 1,
"color": "#9be9a8"
},
...
]
}
request
http:https://leaf-contributions.herokuapp.com/user/{github name}/2020-09-28
receive
{
"date": "2020-09-28",
"count": 2,
"color": "#9be9a8"
}
request
http:https://leaf-contributions.herokuapp.com/user/{github name}/2020
receive
[
{
"date": "2020-01-01",
"count": 2,
"color": "#9be9a8"
},
{
"date": "2020-01-02",
"count": 1,
"color": "#9be9a8"
},
{
"date": "2020-01-03",
"count": 1,
"color": "#9be9a8"
},
...
]
request
http:https://leaf-contributions.herokuapp.com/user/{github name}/today
receive
{
"date": "2020-09-24",
"count": 1,
"color": "#9be9a8"
}
Copyright 2020 Im-Tae (TaeGeon Lim)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.