/hxgamejolt-api

Haxe bindings for GameJolt API.

Primary LanguageHaxeMIT LicenseMIT

hxgamejolt-api

Haxe bindings for GameJolt API.

Installation

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

Basic Usage Example

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
});

Licensing

hxgamejolt-api is made available under the MIT License. Check LICENSE for more information.