[AD] NEW LINKAR FRAMEWORK FOR PHP and Python

26 views
Skip to first unread message

kosdays...@gmail.com

unread,
Mar 24, 2022, 9:34:54 AM3/24/22
to jBASE

Programming with Python or PHP to access your MV database is easier with Linkar Framework
Linkar Framework for PHP or Python are a set of open-source libraries that allows developers to create their own applications that connect to the linked Linkar Server to access the different MV Databases

PHP sample code of a Read function

include_once 'Linkar/Linkar.php';
include_once 'Linkar.Functions.Persistent.JSON/Functions.php';
public function MyRead()
{
$credentials = new CredentialOptions("192.168.100.100", "QMWINQ", 11300, "admin", "1234");
$result = DirectCommands::Read($credentials, "LK.CUSTOMERS","{ \"RECORDS\": [ { \"LKITEMID\": \"2\" } ]}");
return $result;
}

Python sample code of a Read function

from Linkar.Linkar import CredentialOptions
from Linkar_Functions.Linkar.Functions.LinkarFunctions import *
from Linkar_Functions_Direct_JSON.Linkar.Functions.Direct.JSON.Functions import *
def MyRead():
try:
credentials = CredentialOptions("192.168.100.100", "QMWINQ", 11300, "admin", "1234")
result = Functions.Read(credentials, "LK.CUSTOMERS","{ \"RECORDS\": [ { \"LKITEMID\": \"2\" } ]}")
except Exception as ex:
print("ERROR: " + str(ex))
# Do something
return result

Linkar Trainer will help you generate your own source code.

Links:
Download the libraries from here  and view all the source code in Github
                           
Linkar Framework is totally free and royalty free.
You only need a Linkar Server License to connect to the database.
Ask for your Linkar Server Evaluation license here 

and coming soon Linkar Web Services... The professional API...

The kosday team
Reply all
Reply to author
Forward
0 new messages