Repository navigation
Methods & parameters
- Create Session
- Ping
- Test Session
- Get Leaderboard
- Get Match Details
- Get Match Ids By Queue
- Get Player
- Get Player Match History
- Get Player Stats
/createsession[ResponseFormat]/{devID}/{signature}/{timestamp}
A required step to Authenticate the developerId/signature for further API use.
| Parameter | Description | Example |
|---|---|---|
| ResponseFormat | JSON or XML | json |
| devID | Your devID from your application request | 1004 |
| signature | The signature of "createsession" method | c332691773af33948c9ddb12e5fb444f |
| timestamp | The current timestamp | 20180628012612 |
Response: JSON
{
"ret_msg": "Approved",
"session_id": "1465AFCA32DBDB800CEF8C72F296C52C",
"timestamp": "6/28/2018 1:26:12 AM"
}The sessionId is contained in an element called “session_id”. This parameter is needed to call the other methods.
/ping[ResponseFormat]
A quick way of validating access to the Realm Royale API.
| Parameter | Description | Example |
|---|---|---|
| ResponseFormat | JSON or XML | json |
Request: http://api.realmroyale.com/realmapi.svc/pingjson
Response: TEXT PLAIN
RealmAPI (ver 1.0.0.0) [PATCH - ] - Ping successful. Server Date:6/28/2018 1:26:12 AM
/testsession[ResponseFormat]/{devId}/{signature}/{session}/{timestamp}
A means of validating that a session is established.
| Parameter | Description | Example |
|---|---|---|
| ResponseFormat | JSON or XML | json |
| devID | Your devID from your application request | 1004 |
| signature | The signature of "testsession" method | c332691773af33948c9ddb12e5fb444f |
| session | A valid session_id | 1465AFCA32DBDB800CEF8C72F296C52C |
| timestamp | The current timestamp | 20180628012612 |
Response: TEXT PLAIN
This was a successful test with the following parameters added: developer: 1004 time: 6/28/2018 1:26:12 AM signature: c332691773af33948c9ddb12e5fb444f session: 1465AFCA32DBDB800CEF8C72F296C52C
/getPlayer[ResponseFormat]/{devId}/{signature}/{session}/{timestamp}/{player}/hirez
/getPlayerStats[ResponseFormat]/{devId}/{signature}/{session}/{timestamp}/{player}
/getPlayerMatchHistory[ResponseFormat]/{devId}/{signature}/{session}/{timestamp}/{player}
/getLeaderboard[ResponseFormat]/{devId}/{signature}/{session}/{timestamp}/{queue}/{ranking_criteria}
/getMatchIDsByQueue[ResponseFormat]/{devId}/{signature}/{session}/{timestamp}/{queue}/{date}/{hour}
/getMatchDetails[ResponseFormat]/{devId}/{signature}/{session}/{timestamp}/{matchId}