Api event user get logs: Difference between revisions
Jump to navigation
Jump to search
Created page with "API Endpoint: api/event/user/get_logs/ Description: Get logs since a date. {|class=wikitable !Index !Importance !Type !Description !Values |- | 0 | OPTIONAL | (String) | Domain Name (optional, leave empty by default) | |- | 1 | REQUIRED | (Enumeration) | Type | BACKUP, JOBS, LOGINS, SECURITY, SESSIONS or USERS |- | 2 | REQUIRED | (Integer number) | Date in milliseconds | |} ===Response Codes=== {|class=wikitable !Response Code: !Description |- | 200 | Log[] (Log ar..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 41: | Line 41: | ||
===Example POST=== | ===Example POST=== | ||
Curl example POST | Curl example POST | ||
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/event/user/get_logs/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials> | <syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/event/user/get_logs/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '[ "", "SESSIONS", 0 ]' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
JavaScript example POST | JavaScript example POST | ||
<syntaxhighlight lang="text" copy>var options = { | <syntaxhighlight lang="text" copy>var options = { | ||
method: "POST", | method: "POST", | ||
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials> | headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>" }, | ||
body: '[ "", "SESSIONS", 0 ]' | body: '[ "", "SESSIONS", 0 ]' | ||
}; | }; | ||
Latest revision as of 15:18, 20 November 2026
API Endpoint: api/event/user/get_logs/
Description: Get logs since a date.
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | OPTIONAL | (String) | Domain Name (optional, leave empty by default) | |
| 1 | REQUIRED | (Enumeration) | Type | BACKUP, JOBS, LOGINS, SECURITY, SESSIONS or USERS |
| 2 | REQUIRED | (Integer number) | Date in milliseconds |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Log[] (Log array) |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/event/user/get_logs/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '[ "", "SESSIONS", 0 ]'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>" },
body: '[ "", "SESSIONS", 0 ]'
};
fetch("https://engine.tygron.com/api/event/user/get_logs/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));