Skip to content

Im-Tae/leaf-contributions-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaf Contributions API

Author License build

A simple API that returns number of GitHub contributions

Use

All

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"
    },
    ...
  ]
}

Desired Date

request

http:https://leaf-contributions.herokuapp.com/user/{github name}/2020-09-28

receive

{
  "date": "2020-09-28",
  "count": 2,
  "color": "#9be9a8"
}

YEAR

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"
  },
  ...
]

Today

request

http:https://leaf-contributions.herokuapp.com/user/{github name}/today

receive

{
  "date": "2020-09-24",
  "count": 1,
  "color": "#9be9a8"
}

License

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.

About

GitHub Contributions API (current server is shut down)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages