Api event io get server time
API Endpoint: api/event/io/get_server_time/
Description: Get the current server Time in milliseconds, useful for synchronizing client-server clocks.
| Index | Importance | Type | Description | Values |
|---|
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Long (Current server time in milliseconds since epoch 1970) |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/event/io/get_server_time/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d ''JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>" },
body: ''
};
fetch("https://engine.tygron.com/api/event/io/get_server_time/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));