Client API
Send Log
Send a client log message to panel Event Logs.
Query Params
type
string
required Example:
logRequest action name
name
string
required Example:
MyAppApplication name from Seller Panel
ownerid
string
required Example:
XXXXXXXXXX10-character Owner ID from panel credentials
sessionid
string
required Example:
your_session_idSession ID returned by
initmessage
string
required Example:
User opened menuLog text
Request Code Samples
Shell
curl -X POST 'https://libreauth.nutexe.dev/api/1.3/' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'type=log&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&message=Hello'
Go
app := libreauth.New("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/")
app.Init()
app.Log("Hello from client")
PHP
<?php
$ch = curl_init('https://libreauth.nutexe.dev/api/1.3/');
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_POSTFIELDS => 'type=log&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&message=Hello', CURLOPT_HTTPHEADER => ['Content-Type: application/x-www-form-urlencoded'], CURLOPT_RETURNTRANSFER => true]);
echo curl_exec($ch);
Python
import requests
res = requests.post('https://libreauth.nutexe.dev/api/1.3/', data={
'type': 'log',
'name': 'MyApp',
'ownerid': 'XXXXXXXXXX',
'sessionid': 'your_session_id',
'message': 'Hello'
})
print(res.json())
HTTP
POST /api/1.3/ HTTP/1.1
Host: libreauth.nutexe.dev
Content-Type: application/x-www-form-urlencoded
type=log&name=MyApp&ownerid=XXXXXXXXXX&sessionid=your_session_id&message=Hello
C#
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.LogAsync("Hello from client");
C++
LibreAuth::Client app("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
app.init();
app.log("Hello from client");
JavaScript
const body = new URLSearchParams({
type: 'log',
name: 'MyApp',
ownerid: 'XXXXXXXXXX',
sessionid: 'your_session_id',
message: 'Hello'
});
fetch('https://libreauth.nutexe.dev/api/1.3/', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: body.toString() })
.then(r => r.json()).then(console.log);
TypeScript
const app = new LibreAuth('MyApp', 'XXXXXXXXXX', '1.0', 'https://libreauth.nutexe.dev/api/1.3/');
await app.init();
await app.log('Hello from client');
Java
LibreAuth app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
app.init();
app.log("Hello from client");
Rust
let mut app = LibreAuth::new("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
app.init()?;
app.log("Hello from client")?;
Ruby
app = LibreAuth.new('MyApp', 'XXXXXXXXXX', '1.0', 'https://libreauth.nutexe.dev/api/1.3/')
app.init
app.log('Hello from client')
Perl
my $app = LibreAuth->new('MyApp', 'XXXXXXXXXX', '1.0', 'https://libreauth.nutexe.dev/api/1.3/');
$app->init;
$app->log('Hello from client');
Lua
local app = LibreAuth.new('MyApp', 'XXXXXXXXXX', '1.0', 'https://libreauth.nutexe.dev/api/1.3/')
app:init()
app:log('Hello from client')
React
const app = new LibreAuth('MyApp', 'XXXXXXXXXX', '1.0', process.env.REACT_APP_API_URL);
await app.Init();
await app.Log('Hello from client');
Vue
const app = new LibreAuth('MyApp', 'XXXXXXXXXX', '1.0', import.meta.env.VITE_API_URL);
await app.Init();
await app.Log('Hello from client');
Unity
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.LogAsync("Hello from client");
WPF
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.LogAsync("Hello from client");
VB.NET
var app = new LibreAuth("MyApp", "XXXXXXXXXX", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
await app.LogAsync("Hello from client");
Responses
application/json · object
{
"success": true,
"message": "Log sent"
}