This method returns a security token required for launch url.
Substitute for CreateIdentity and CreateSession.
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, currency, parent, type, password (for more information, see Creating Data Sign) |
string (64) | 5E0A0349AE36AD67CD21D891AB124CCE 8CC4171C5BD7EF5B26FCA86DB71F500A |
name | Identity name Allowed characters a-zA-Z0-9._- |
string (48) | 8f335369-4200-42af-b6ad-4008e76f1ecc |
currency | Currency code expressed with 3 or 4 letters. List of supported currency codes. | string (4) | USD |
parent | Parent name of created identity. This parameter is optional. The default value is an empty string. |
string (48) | O24052 |
type | Identity type. This parameter is optional. The default value is an empty string. | string (32) | integration.player |
password | Password of identity. This parameter is optional. The default value is an empty string. |
string (256) | pass123 |
Request example:
REST JSON
POST https://staging.tomhorngames.com/services/gms/RestCustomerIntegrationService.svc/GetGameLaunchToken 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" : "355B98FC4A3D7FA97758E52A65F07AEF5738FDB078762F5B5C097A828C10C36D",
"name" : "8f335369-4200-42af-b6ad-4008e76f1ecc",
"currency" : "EUR",
"parent" : "",
"type" : "",
"password" : "123456"
}
Response
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
Code | Result codes: 0, 1, 11, 12, 1001, 1002, 1003, 1004, 1012, 1014, 1015, 1016, 1019 (for more information, see Result Codes) | integer | 0 |
Message | Description of the error, if one has occurred. This value is filled only if an error takes place. | string (256) | Cannot find specified identity |
Session | This property is set only if the result code is 0 (success) | ||
End | Full close date and time of session. This value is set only when the session is closed. | DateTime | 10/09/2022 9:58:05 AM |
ID | Session ID | integer | 1234556 |
Name | Identity name | string (48) | 8f335369-4200-42af-b6ad-4008e76f1ecc |
SecurityToken | Secure token generated to use in Game Launch URL for player authentication | string (32) |
DD6537E0BA693D2C72B22626F36DBE38 09DD04416490A8CF1990C7C5C41EC232 |
Start | Full start date and time of session. | DateTime |
10/09/2022 9:28:05 AM |
State | The current state of the session: Open or Closed | string (32) |
Open |
Response example:
REST JSON
{
"Code": 0,
"Message": null,
"Session": {
"End": null,
"ID": 273830,
"Name": "Player1",
"SecurityToken": "DD6537E0BA693D2C72B22626F36DBE3809DD04416490A8CF1990C7C5C41EC232",
"Start": "10/09/2022 9:28:05 AM",
"State": "Open"
}
}
Comments
0 comments
Article is closed for comments.