Git Product home page Git Product logo

github-update-checker-1's Introduction

GitHub Update Checker

IP Leak, DNS Leak Test, WebRTC Test, What is my IP address 检查 GitHub 上指定的仓库是否有新 Release

C#

string userOrOrgName = "maijz128";
string repoName = "github-update-checker";
string currentVersion = "0.0.1";

UpdateChecker checker = new UpdateChecker(userOrOrgName, repoName, currentVersion);

checker.HasNewVersion(result =>{
    if(result){
        checker.OpenBrowserToReleases();
    }
});

Java

String userOrOrgName = "maijz128";
String repoName = "github-update-checker";
String currentVersion = "0.0.1";
UpdateChecker checker = new UpdateChecker(userOrOrgName, repoName, currentVersion);
checker.HasNewVersion((result)->{
    checker.OpenBrowserToReleases();
});

JavaSctipt

var userOrOrgName = "maijz128";
var repoName = "github-update-checker";
var currentVersion = "0.0.1";
var checker = UpdateChecker.createNew(userOrOrgName, repoName, currentVersion);
checker.hasNewVersion(function (result) {
   if(result) {
       checker.openBrowserToReleases();
   }
});

Python

user_org_name = "maijz128"
repo_name = "github-update-checker"
current_version = "0.0.1"
checker = UpdateChecker(user_org_name, repo_name, current_version)

def callback(result):
    if result:
        checker.open_browser2releases()

checker.has_new_version(callback)

GitHub API

订阅指定仓库的 Release 更新

https://github.com/{USER_OR_ORG}/{REPO_NAME}/releases.atom

示例:

https://github.com/maijz128/github-update-checker/releases.atom

订阅

获取指定仓库最新Release版本信息

https://api.github.com/repos/{USER_OR_ORG}/{REPO_NAME}/releases/latest

示例:

https://api.github.com/repos/maijz128/github-update-checker/releases/latest

浏览JSON

Demo

image

github-update-checker-1's People

Contributors

maijz128 avatar vpnarea avatar

Watchers

 avatar

Forkers

markzuckercrack

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.