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', {
onSucceed: function(data:Dynamic):Void
{
// your code
},
onFail: function(message:String):Void
{
trace(message);
}
});
GameJolt.fetchUser('user name', [], {
onSucceed: function(data:Dynamic):Void
{
// your code
},
onFail: function(message:String):Void
{
trace(message);
}
});
hxgamejolt-api is made available under the MIT License. Check LICENSE for more information.