User Information and Friends API
You can personalize content in your game by accessing some basic user information about the current player. This information can be read with both the client and the server-side REST APIs. The REST API combines all of the user information into a single feed, as well as a list of the user's friends. You can read more about the
/user_info.json to get the details. The client side is broken up into individual calls:
getUsername- Retrieves the player's Kongregate username.
getUserId- Retrieves the player's Kongregate id number. Note that this is not secure - if you need to securely verify a user, please use our Authentication API.
isGuest- Determines whether or not the player is a guest (i.e. not signed in to Kongregate).
getGameAuthToken- Retrieves the game-specific authentication code for the player. This is used in conjunction with the Authentication API.
user_info- HTTP endpoint used for retrieving information about Kongregate users and their friends.
Kongpanions- HTTP endpoints for obtaining information about which Kongpanions a user has acquired.