Haxe bindings for GameJolt API.
You can install it through Haxelib
haxelib install hxgamejolt-api
Or through Git
, if you want the latest updates
haxelib git hxgamejolt-api https://github.com/MAJigsaw77/hxgamejolt-api.git
import hxgamejolt.GameJolt; // be sure you import this.
GameJolt.init('game id', 'private key');
GameJolt.authUser('user name', 'user token', function(json:Dynamic) // on Succeed
{
// your code
}, function(message:String) // on Failure
{
// your code
});
GameJolt.fetchUser('user name', [], function(json:Dynamic) // on Succeed
{
// your code
}, function(message:String) // on Failure
{
// your code
});
hxgamejolt-api is made available under the MIT License. Check LICENSE for more information.