Game Round History

๐Ÿ•น๏ธ Description

Command 22 โ€“ List Gameplay History of a User (with Replay)

This command returns a styled HTML table displaying the gameplay history of a specific user. It includes pagination (10 entries per page) and optional replay functionality. You can filter by gameplay ID (gpid) or request only incomplete rounds.

The Replay button included in the HTML lets you view a description or even replay the actual gameplay screen (depending on the game).


๐Ÿ“œ Sample JSON Request (from your server to the RGS-CWS server)

{ "command": "22", "login": "demoaccount", "gpid": "78221", "incomplete": "1", "apiusername": "your_api_username", "apipass": "your_api_password" }

๐Ÿ” Note: The input must be securely sent to the REST API URL. All field names and values are case-sensitive and must match the exact format provided.


๐Ÿ“ฅ Input Parameters (from your server to the RGS-CWS server)

Parameter

Mandatory

Description

Type

*command

โœ…

Must be "22"

string

*login

โœ…

Username (min. 6 characters). Optional if userid is used instead.

string

userid

โŒ

RGS-CWS user ID. Cannot be used together with login.You must provide either login or userid โ€” not both.

string

gpid

โŒ

Specific Gameplay ID to filter. Leave empty to retrieve all user gameplays.

string

incomplete

โŒ

If "1", only incomplete gameplays are returned. Use "0" or omit to include all.

string

*apiusername

โœ…

API username (for authentication, especially in multi-operator setups)

string

*apipass

โœ…

API password

string

You must provide either login or userid โ€” not both.


๐Ÿ“ƒ Sample JSON Response (returned by RGS-CWS)

โœ… Success:

{ "message": "<html>...Styled HTML table of gameplays with REPLAY buttons...</html>" }

โŒ Failure (e.g., invalid user):

{ "message": "ERROR" }

๐Ÿ“ค Output Parameters (returned by RGS-CWS)

Parameter

Required

Description

Type

message

โœ…

"ERROR" if user is invalid, or a styled HTML table with gameplay history

string


โœ… Operator Notes

  • Use this command for support tools, player history panels, or compliance audits.

  • The returned HTML is already styled, and includes REPLAY buttons per entry.

  • To retrieve only unresolved rounds (e.g., interrupted gameplays), use incomplete = "1".