Getting Started

There are a few major classes that you want to pay attention to when using the Game Jolt C# API. The first, is the settings Class. This is where you specify the current User, Token, Game ID and Game Key. All 4 of these must be specified before you continue to use the rest of the API. The other classes are the APIClient such as TrophyClient. These are what actually do the lifting in the API. You will be using them to do the different tasks such as Award and Achievement or set a HighscoreThere are a few major classes that you want to pay attention to when using the Game Jolt C# API. The first, is the settings Class. This is where you specify the current User, Token, Game ID and Game Key. All 4 of these must be specified before you continue to use the rest of the API. The other classes are the APIClient such as TrophyClient. These are what actually do the lifting in the API. You will be using them to do the different tasks such as Award and Achievement or set a Highscore.

Since all Web Requests in the API are done asynchronously every Client has events that you must tie into in order to respond to the data retrieved from the requests. In general, each action will have two events attached to it. One for success and another for if an error occurs. By attaching to these events you will know when an event completes, but are also able to perform other tasks in your UI or Game while you contact Game Jolt. This can be as simple as showing a loading screen and can be infinitely more complex after that.

See Also

Trophies

Last edited Sep 20, 2012 at 6:18 AM by runewake2, version 2

Comments

No comments yet.