This operation retrieves games for the player session.
Request
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
PartnerID | ID of partner Unique ID associated with each customer | GUID | D61A14AE-0A0C-464B-B7AB-5900BE7462F9 |
Sign | Parameters partnerID, sessionID (for more information, see Creating Data Sign) | string(64) | 5E0A0349AE36AD67CD21D891AB124CCE 8CC4171C5BD7EF5B26FCA86DB71F500A |
SessionID | The ID of the player’s session | long | 123456789 |
Request example:
REST JSON
POST https://staging.tomhorngames.com/services/gms/RestCustomerReportService.svc/GetSessionGames HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Length: 123456
Host: staging.tomhorngames.com
{
"PartnerID": "C77BB500-7E9A-4214-BD3C-605D6D2F91D9",
"Sign": "9b0c40cf8447b3625088290a5569fd04de6317a7a2a8358772444a21974ad710",
"SessionID": "179605"
}
SOAP
POST https://staging.tomhorngames.com/services/gms/CustomerReportService.svc HTTP/1.1
Host: staging.tomhorngames.com
Content-Type: text/xml; charset="utf-8"
SOAPAction: "http://tomhorn.eu/crservice/ICustomerReportService/GetSessionGames"
Content-Length: 123456
<GetSessionGamesRequest> <PartnerID>8D63341D-050A-4BA0-A1A5-BC2A3FBE9F5C</PartnerID> <SessionID>123432397</SessionID> <Sign>38FA381E6967FFBD8BAF2DFDB10733E9AF8E70153DB3294FF65D7621F166EFE7</Sign> </GetSessionGamesRequest>
Response
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
Code | Result codes: 0, 1, 11, 12, 1001, 1002, 1006 , 1013 (for more information, see Result Codes) | integer | 0 |
Message | Description of the error, if one has occurred. This value is filled only in the event that an error takes place. | string | The specified session was not found. |
Session | Information about the session. This property is set only if the result code is 0 (success). | ||
ID | Session ID. | long | 123432397 |
Name | The player’s name. | string | Player01 |
Start | Full start date and time of session. | DateTime | 2013-11-18T12:41:00 |
End | Full close date and time of session. This value is set only when the session is closed. | DateTime | 2013-11-18T12:41:20 |
State | The current state of the session: Open or Closed | enumeration value | Closed |
GamesCount | The count of games played during this session. | int | 5 |
Games | List of games. This value is set only when the session is closed. | ||
Game | Data about the game. | ||
ID | The ID of the game. | long | 4562321354 |
Finished | Full close date and time of the game. | DateTime | 2015-01-20T09:27:48.208 |
Type | Type of the game. | string | Video Slot |
Name | Name of the game. | string | 7 Mirrors |
Bet | Bet on the game. | decimal | 0.10 |
Win | Win in a game. | decimal | 0.00 |
RealAmountEnd | The Player's real money account balance after the game was closed. | decimal | 25.16 |
Response example:
REST JSON
{
"Code": 0,
"Games": [
{
"Bet": 1.0000,
"BetInfo": null,
"End": "2022-06-01T09:04:00.113",
"ID": 142427838,
"Name": "Fluxberry",
"RealAmountEnd": 100063.8000,
"Start": "0001-01-01T00:00:00",
"Type": "Video Slot",
"Win": 61.4000
}
],
"Message": null,
"Session": {
"End": "2022-06-01T09:04:03.96",
"GamesCount": 1,
"ID": 179605,
"Name": "dummy1_EUR",
"Start": "2022-06-01T09:03:22.803",
"State": 1
}
}
SOAP
<GetSessionGamesResponse> <Code>0</Code> <Message></Message> <Session> <ID>123432397</ID> <Name>Player01</Name> <Start>2015-01-20T09:27:40.357</Start> <End>2015-01-20T09:28:20.097</End> <State>Closed</State> </Session> <Games> <Game> <ID>4562321354</ID> <Finished>2015-01-20T09:27:48.208</Finished> <GameType>Video Slot</GameType> <Name>7 mirrors</Name> <Bet>0.10</Bet> <Win>0.00</Win> <RealAmountEnd>25.16</RealAmountEnd> </Game> <Game> <ID>4562321355</ID> <Finished>2015-01-20T09:28:35.306</Finished> <GameType>Video Slot</GameType> <Name>7 mirrors</Name> <Bet>0.10</Bet> <Win>0.50</Win> <RealAmountEnd>25.06</RealAmountEnd> </Game> </Games> </GetSeSssionGamesResponse>
Comments
0 comments
Article is closed for comments.