â Check
Checks to see if there is an open session for the user. Can be used to see if a particular user account is active in the game.
URL Endpointâ
/sessions/check/
Parametersâ
| Name | Required? | Type | Description |
|---|---|---|---|
game_id | Yes | string | The ID of your game. |
username | Yes | string | The user's username. |
user_token | Yes | string | The user's token. |
Returnsâ
| Name | Type | Description |
|---|---|---|
success | boolean | Whether an open session exists. Example: true |
message | string | If the request was not successful, this contains the error message. Example: Unknown fatal error occurred. |
Remarksâ
- This endpoint returns
falsefor thesuccessfield when no open session exists. That behaviour is different from other endpoints which use this field to indicate an error state.
Syntaxâ
/sessions/check/?game_id=xxxxx&username=myusername&user_token=mytoken
Request Exampleâ
GET https://api.gamejolt.com/api/game/v1_2/sessions/check/
?game_id=1
&username=hjake
&user_token=404432
&signature=af8b72e5668e2175a024220b2401869e
HTTP/1.1
Host: api.gamejolt.com
Version historyâ
| Version | Description |
|---|---|
| 1.2 | First implementation |