This operation retrieves information about sessions for a specified player and time interval.
Request
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
partnerID | ID of partner Unique ID associated with each customer | GUID | D61A14AE-0A0C-464B-B7AB-5900BE7462F9 |
Sign | Parameters partnerID, playerName, dateFrom, dateTo (for more information, see Creating Data Sign) | string(64) | 53C663DF24F361B79A74692252A073FAB61919 01B3E7587A 043A06D2B927B499 |
PlayerName | The player’s name | string | Player01 |
TimeFrom | The start of the time interval | DateTime | 2015-01-20T00:00:00 |
TimeTo | The end of the time interval | DateTime | 2015-01-23T00:00:00 |
Request example:
REST JSON
POST https://staging.tomhorngames.com/services/gms/RestCustomerIntegrationService.svc/GetSessions 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": "7d99cf851fe3c4e617a01cd288fdf4bb1f6cc29ec75f7f78732b3b5eaf6c04a0",
"PlayerName": "dummy1_EUR",
"TimeFrom": "2022-06-02T00:00:00",
"TimeTo": "2022-06-14T00:00:00"
}
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/GetSessions"
Content-Length: 468
<GetSessionsRequest> <PartnerID>8D63341D-050A-4BA0-A1A5-BC2A3FBE9F5C</PartnerID> <Sign>53C663DF24F361B79A74692252A073FAB6191901B3E7587A043A06D2B927B499</Sign> <PlayerName>Player01</PlayerName> <TimeFrom>2015-01-20T00:00:00</TimeFrom> <TimeTo>2015-01-23T00:00:00</TimeTo> </GetSessionsRequest>
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 | Cannot find specified identity |
Name | The player’s name. | string | Player01 |
TimeFrom | The start of the time interval | DateTime | 2015-01-20T00:00:00 |
TimeTo | The end of the time interval | DateTime | 2015-01-23T00:00:00 |
Sessions | List of session data. This property is set only if the result code is 0 (success). | ||
Session | Information about the session. | ||
ID | Session ID. | long | 123432397 |
Name | The player’s name. | string | Player01 |
Start | Full start date and time of session. | DateTime | 2015-01-20T09:27:40.357 |
End | Full close date and time of session. This value is set only when the session is closed. | DateTime | 2015-01-20T09:28:20.097 |
State | The current state of the session: Open or Closed | enumeration value | Closed |
GamesCount | The count of games played during this session. | int | 5 |
Response example:
REST JSON
{
"Code": 0,
"Message": null,
"Name": "dummy1_EUR",
"Sessions": [
{
"End": "2022-06-02T07:46:36.057",
"GamesCount": 0,
"ID": 179713,
"Name": "dummy1_EUR",
"Start": "2022-06-02T07:46:28.813",
"State": 1
}],
"TimeFrom": "2022-06-02T00:00:00",
"TimeTo": "2022-06-14T00:00:00"
}
SOAP
<GetSessionsResponse> <Code>0</Code> <Message /> <Name>matEUR3</Name> <TimeFrom>2015-01-20T00:00:00</TimeFrom> <TimeTo>2015-01-23T00:00:00</TimeTo> <Sessions> <Session> <ID>123432399</ID> <Name>Player01</Name> <Start>2015-01-23T09:32:17.527</Start> <End /> <State>Open</State> <GamesCount>0</GamesCount> </Session> <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> <GamesCount>5</GamesCount> </Session> <Session> <ID>123432396</ID> <Name>Player01</Name> <Start>2015-01-20T09:26:26.66</Start> <End>2015-01-20T09:27:36.45</End> <State>Closed</State> <GamesCount>8</GamesCount> </Session> </Sessions> </GetSessionsResponse>
Comments
0 comments
Article is closed for comments.