https://github.com/guineapiguuhh/haxe-github
Haxe functions to use the Github API Integration.
https://github.com/guineapiguuhh/haxe-github
api github-api haxe-library
Last synced: about 11 hours ago
JSON representation
Haxe functions to use the Github API Integration.
- Host: GitHub
- URL: https://github.com/guineapiguuhh/haxe-github
- Owner: GuineaPigUuhh
- License: mit
- Created: 2024-02-28T00:58:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-07T19:18:54.000Z (over 1 year ago)
- Last Synced: 2024-06-07T20:38:38.042Z (over 1 year ago)
- Topics: api, github-api, haxe-library
- Language: Haxe
- Homepage: https://lib.haxe.org/p/haxe-github/
- Size: 1.53 MB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Haxe Github
Haxe functions to use the
GitHub API Integration.
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
```
Usage Exemple
```haxe
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:
```haxe
/*
USER: https://api.github.com/users/GuineaPigUuhh
FOLLOWERS: 13 FOLLOWING: 84
REPOSITORY: https://api.github.com/repos/GuineaPigUuhh/haxe-github
*/
```
---
> If you want more demonstrations of the use of the lib, go to the examples folder
---
The library being used in HaxeFlixel:

---
>
Developer:
> GuineaPigUuhh