The game server uses this api to communicate with the partner's server. The game server executes a specified set of requests (currently it is 4 methods) to the partner's server. The partner needs to implement the processing of these requests and give the corresponding responses.****
API.URI - don't forget to inform the manager of the address where you will handle requests.
API.URI + '/' + serviceName + '.' + methodName
partner
, meta
fields are not included in the signature.meta
object is used to pass additional information that is not necessary for processing the request. For example, for slots the information about the number of lines, bet size, etc. is transmitted. The set and format of data in the meta
field can change at any time and without warning, so it is not recommended to be tied to the processing of this data. If you need to receive static data on games (players, etc.), you should use the appropriate partner API or use login-password to access your personal cabinet.The Partner must provide all responses in JSON format.
"status"
in the body of the answer: 200
{
"status" : 200,
"method" : "service.method",
"response" : ...response entity as json...
}
The general pattern of the negative response:
{
"status" : "numeric code other than 200",
"method" : "service.method",
"message" : "String description of the error. For security reasons, the description does not necessarily clearly describe what happened on the server, but in some cases may serve as a hint. In other cases, contact technical support"
}
1s
3s