Authenticate
This service is used to authenticate the server request for the session based protocol.
Results
Name | Description |
---|---|
sessionId | String to pass in with subsequent requests |
Service | Operation |
---|---|
authenticationV2 | AUTHENTICATE |
Method Parameters
Parameter | Description |
---|---|
gameId | Same usage as for simple request |
serverName | Same usage as for simple request |
gameSecret | Same usage as for simple request |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to Raw tab.
{
"appId": "23783",
"serverName": "S2SExploer_Server",
"serverSecret": "ec28be0f-19f9-4d76-972d-89a43ddd970a",
"service": "authenticationV2",
"operation": "AUTHENTICATE",
"data": {
"appId": "23783",
"serverName": "S2SExploer_Server",
"serverSecret": "ec28be0f-19f9-4d76-972d-89a43ddd970a"
}
}
JSON Response
{
"packetId": 0,
"messageResponses": [
{
"reasonCode": 0,
"errorResponse": false,
"data": {
"heartbeatSeconds": 1890,
"sessionId": "57s9trm73b9qeqlmnnvij8l2fn"
},
"statusCode": 200,
"statusMessage": null
}
]
}