{"_id":"570ffea2c510130e00d0b966","__v":1,"category":{"_id":"56af6d6ecc4cbd0d00ce2c88","pages":["56af6e8460a37a0d00ed87ac","56af71e58be2ea0d00b48887","56af73a08be2ea0d00b48890"],"version":"56abbf55f25f160d00e17f51","__v":3,"project":"56abbf55f25f160d00e17f4e","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-01T14:36:30.275Z","from_sync":false,"order":2,"slug":"concepts","title":"Kongregate APIs & Concepts"},"project":"56abbf55f25f160d00e17f4e","version":{"_id":"56abbf55f25f160d00e17f51","project":"56abbf55f25f160d00e17f4e","__v":12,"createdAt":"2016-01-29T19:36:53.665Z","releaseDate":"2016-01-29T19:36:53.665Z","categories":["56abbf56f25f160d00e17f52","56abca6bf9757e0d007c6650","56acddfa0ab3c00d00ce3332","56af65da9d32e30d0006d30f","56af66cab34d210d003d9ad0","56af6afcd21e9c0d00b628d1","56af6d6ecc4cbd0d00ce2c88","5705b12221cfed0e00e8c580","570a5676ade45d0e00c1ad33","570d7d25d1e4b82000d9e385","570eac3c3160d10e0041df0e","575709000fd6a3200010dded"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"parentDoc":null,"user":"56abbec30b9e0b0d00616274","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-14T20:33:38.173Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":16,"body":"You can personalize content in your game by accessing some basic user information about the current player. This information can be accessed using both the server and the client. Below is a list of methods for retrieving information about users and their friends:\n\n### Client methods:\n\n*   [Services.GetUsername](doc:client-api-services-getusername)  - Retrieves the player's Kongregate username.\n*   [Services.GetUserId](doc:client-api-services-getuserid)  - Retrieves the player's Kongregate user ID. Note that this is not secure - if you need to securely verify a user, please see the [Authentication API documentation](doc:concepts-authentication).\n*   [Services.IsGuest](doc:client-api-services-isguest)  - Determines whether or not the player is a guest (i.e. not signed in to Kongregate)\n*  [Services.GetGameAuthToken](doc:client-api-services-getgameauthtoken)  - Retrieves the game-specific authentication code for the player. This is used in conjunction with the [Authentication API](doc:concepts-authentication).\n\n### Server methods:\n*   [User Information](doc:server-api-user-info) - HTTP endpoint used for retrieving information about Kongregate users and their friends.\n*  [Kongpanions](doc:api-kongpanions) - HTTP endpoints for obtaining information about Kongpanions and Kongpanion ownership.","excerpt":"","slug":"concepts-user-information-and-friends","type":"basic","title":"User Information & Friends"}

User Information & Friends


You can personalize content in your game by accessing some basic user information about the current player. This information can be accessed using both the server and the client. Below is a list of methods for retrieving information about users and their friends: ### Client methods: * [Services.GetUsername](doc:client-api-services-getusername) - Retrieves the player's Kongregate username. * [Services.GetUserId](doc:client-api-services-getuserid) - Retrieves the player's Kongregate user ID. Note that this is not secure - if you need to securely verify a user, please see the [Authentication API documentation](doc:concepts-authentication). * [Services.IsGuest](doc:client-api-services-isguest) - Determines whether or not the player is a guest (i.e. not signed in to Kongregate) * [Services.GetGameAuthToken](doc:client-api-services-getgameauthtoken) - Retrieves the game-specific authentication code for the player. This is used in conjunction with the [Authentication API](doc:concepts-authentication). ### Server methods: * [User Information](doc:server-api-user-info) - HTTP endpoint used for retrieving information about Kongregate users and their friends. * [Kongpanions](doc:api-kongpanions) - HTTP endpoints for obtaining information about Kongpanions and Kongpanion ownership.