This operation creates a new playing session for a specified identity.
The account balance is set to a predefined amount in Play For Fun mode.
Request
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
partnerID | ID of partner Unique ID associated with each customer |
GUID | D61A14AE-0A0C-464B-B7AB-5900BE7462F9 |
sign | Parameters partnerID, name (for more information, see Creating Data Sign) |
string (64) | 5E0A0349AE36AD67CD21D891AB124CCE 8CC4171C5BD7EF5B 26FCA86DB71F500A |
name | Identity name | string(48) | Player01 |
Request example:
REST JSON
POST https://staging.tomhorngames.com/services/gms/RestCustomerIntegrationService.svc/CreateSession 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" : "D1394EEF834F7B9654B47C0B0994EBCB518EDEBEC523E1157B93A3C8539E3EA6",
"name" : "test_EUR"
}
Response
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
Code | Result codes: 0, 1, 11, 12, 1001, 1002, 1003, 1013 (for more information, see Result Codes) | Number | 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 |
Session | This property is set only if the result code is 0 (success) |
||
ID | Session ID | long | 123456789 |
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:00 |
State | The current state of the session: Open or Closed | enumeration value | Open |
Response example:
REST JSON
{
"Code": 0,
"Message": null,
"Session": {
"End": null,
"ID": 669361,
"Name": "test_EUR",
"Start": "2016-08-30T17:55:06.633",
"State": "Open"
}
}
SOAP
<CreateSessionResult> <Code>0</Code> <Message></Message> <Session> <ID>123456789</ID> <Name>Player01</Name> <Start>2013-11-18T12:41:00</Start> <End></End> <State>Open</State> </Session> </CreateSessionResult>
Comments
0 comments
Article is closed for comments.