Overview
All the APIs are requested through HTTP
All the requests must have Content-Type: application/json; charset=UTF-8 header.
All the responses are in JSON.
All data in requests and responses are case sensitive.
All APIs are based in unix timestamp in seconds in UTC time.
All the requests must have the following headers
X-Company-Key: <Your_API_Key>header.Company Keyis the key pre-agreed between the operator (i.e. a party integrates Eagles games) and Eagles.
X-Server-ID: <My_Server_ID>header.Server IDis the game server id provided by the Eagles team
API Endpoints
| Environment | URL | Path |
|---|---|---|
| Development | https://example.com | api/v1 |
| Staging | ||
| Production |
Headers
| Parameter | Type | Description |
|---|---|---|
X-Company-Key | string | The key pre-agreed between the operator (i.e. a party integrates Eagles games) and Eagles. It must be 32 characters |
X-Server-ID | string | The game server id provided by the Eagles team Example: poker-instance-1-staging |
Response
{
"data": {
// some data ...
},
"error": {
"id": 0,
"msg": ""
}
}
The response data will be enclosed in the field data
Please always prioritize the error code, it will be explained later.