Security
Every request to RoyalGaming service. Please provide credential to call service in headers this:
| Field | Type | Description |
|---|---|---|
| x-auth-id | String | Agent username |
| x-auth-key | String | Agent API key |
Example request (Node.JS)
const = await fetch("<API_PATH>/player/register", {
method: "POST",
body: JSON.stringify({ ... }),
headers: {
"Content-Type": "application/json",
// !!! Provide this !!!
"x-auth-id": "AGENT_USERNAME",
"x-auth-key": "AGENT_API_KEY"
}
})Last updated on