GithubHelp home page GithubHelp logo

robert-stackflow / githubcalendar-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2 KB

GitHub contribution calendar API that can be easily deployed on Vercel.可以轻松部署到Vercel上的GitHub贡献日历API

Python 100.00%
github-calendar github-contribution-graph github-contributions vercel vercel-deployment

githubcalendar-api's Introduction

Github contributions calendar api

By using this API, you can obtain user contribution data easily

Deploy

  • Click the Deploy Button to deploy the repository on vercel.

    Deploy with Vercel

  • For mainland China users, since you can't access the vercel domain correctly, you need to bind a custom domain to use this API.

Usage

  • After deploying to Vercel, assuming your domain name is git.calendar.com, you can get the contributions by visiting the following address

    git.canlendar.com/api?username
    
  • You can visit this example url which will return my (Robert-Stackflow) contribution history.

    https://gitcalendar.api.cloudchewie.com/api?Robert-Stackflow

CORS

  • To prevent abuse, you cannot use the example API on your website, it is only used as an example.

  • You can also configure CORS by the allow_origins.txt

  • By default, allow_origins.txt contains the following content

    localhost
    127.0.0.1
    
  • You can add your own website via wildcard

    *.example.com
    blog.example.com
    
  • If the file allow_origins.txt does not exist or the file content is empty, all CORS requests are allowed by default.

Acknowledgments

githubcalendar-api's People

Contributors

robert-stackflow avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.