Skip to main content

▶️ Open

Opens a game session for a particular user and allows you to tell Game Jolt that a user is playing your game. You must ping the session to keep it active and you must close it when you're done with it.

URL Endpoint​

/sessions/open/

Parameters​

NameRequired?TypeDescription
game_idYesstringThe ID of your game.
usernameYesstringThe user's username.
user_tokenYesstringThe user's token.

Returns​

NameTypeDescription
successbooleanWhether the request succeeded or failed. Example: true
messagestringIf the request was not successful, this contains the error message. Example: Unknown fatal error occurred.

Remarks​

  • You can only have one open session for a user at a time. If you try to open a new session while one is running, the system will close out the current one before opening the new one.

Syntax​

/sessions/open/?game_id=xxxxx&username=myusername&user_token=mytoken

Request Example​

GET https://api.gamejolt.com/api/game/v1_2/sessions/open/
?game_id=1
&username=hjake
&user_token=404432
&signature=af8b72e5668e2175a024220b2401869e
HTTP/1.1
Host: api.gamejolt.com

Version history​

VersionDescription
1.0First implementation