This operation closes an open 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) |
5E0A0349AE36AD67CD21D891AB124CCE8 CC4171C5BD7EF5B 26FCA86DB71F500A |
sessionID | ID of the session to close | long | 123456789 |
Request example:
REST JSON
POST https://staging.tomhorngames.com/services/gms/RestCustomerIntegrationService.svc/CloseSession HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Length: 123456
Host: staging.tomhorngames.com
{
"partnerID" : "9a2e7402-5cef-42ed-84a6-db589ce19fc6",
"sign" : "C49B71438EE840D919E40A29B8D8C3C94F82200ED09D6AF0A7625117842F2263",
"sessionID" : 669357
}
Response
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
Code | Result codes: 0, 1, 11, 12, 1002, 1006, 1007, 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 (256) | Cannot find specified identity |
Session | This property is set only if the result code is 0 (success). | ||
Name | The player’s name. | string | Player01 |
ID | Session ID | long | 123456789 |
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:00 |
State | Current state of the session: Open or Closed | enumeration value | Closed |
Response example:
REST JSON
{
"Code" : 0,
"Message" : null,
"Session" : {
"End" : "2016-08-30T17:54:34.983",
"ID" : 669357,
"Name" : "test_EUR",
"Start" : "2016-08-25T15:17:02.7",
"State" : "Closed"
}
}
SOAP
<CloseSessionResult> <Code>0</Code> <Message></Message> <Session> <ID>123456789</ID> <Name>Player01</Name> <Start>2013-11-18T12:41:11</Start> <End>2013-11-18T15:12:35</End> <State>Closed</State> </Session> </CloseSessionResult>
Comments
0 comments
Article is closed for comments.