Skip to content

MAJigsaw77/hxgamejolt-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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', {
	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);
	}
});

Licensing

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