Installation
put this command in your cmd:
`bash
haxelib install haxe-github`
if you want to have the latest version of Lib:
`bash
haxelib git haxe-github https://github.com/GuineaPigUuhh/haxe-github.git`
Haxe Functions for GitHub API Integration.
https://github.com/GuineaPigUuhh/haxe-github
To install, run:
haxelib install haxe-github 1.1.3
See using Haxelib in Haxelib documentation for more information.
put this command in your cmd:
`bash
haxelib install haxe-github`
if you want to have the latest version of Lib:
`bash
haxelib git haxe-github https://github.com/GuineaPigUuhh/haxe-github.git`
import haxegithub.utils.*;
final name:String = 'GuineaPigUuhh';
final reponame:String = 'haxe-github';
final repository = Repository.get(name, reponame);
final user = User.get(name);
Sys.println("USER: " + user.name);
Sys.println("FOLLOWERS: " + user.followers + ' FOLLOWING: ' + user.following);
Sys.println("REPOSITORY: " + repository.name + ' by ' + repository.owner.login);
/*
Result:
USER: https://api.github.com/users/GuineaPigUuhh
FOLLOWERS: 12 FOLLOWING: 71
REPOSITORY: https://api.github.com/repos/GuineaPigUuhh/haxe-github
*/Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!
Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.