Haxe functions to use the GitHub API Integration.
put this command in your cmd:
haxelib install haxe-github
if you want to have the latest version of Lib:
haxelib git haxe-github https://github.com/GuineaPigUuhh/haxe-github.git
import haxegithub.utils.*;
final username:String = 'GuineaPigUuhh';
final reponame:String = 'haxe-github';
final repository = Repository.get(username, reponame);
final user = User.get(username);
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: 13 FOLLOWING: 84
REPOSITORY: https://api.github.com/repos/GuineaPigUuhh/haxe-github
*/