Hello,
I'm trying to use login key to replace DA admin account to work with API, but it does not work.
Can Anyone help me by giving example?
This is my current code:
Thank you.
I'm trying to use login key to replace DA admin account to work with API, but it does not work.
Can Anyone help me by giving example?
This is my current code:
Code:
<?php
include 'httpsocket.php';
$sock = new HTTPSocket;
$sock->connect('ssl://123.456.789',2222);
$sock->set_login('loginKeyTest','[I]hiddenforsecurity[/I]');
$sock->query('/CMD_SELECT_USERS',
array(
'location' => 'CMD_SELECT_USERS',
'suspend' => 'Suspend', // note - this can also be 'Unsuspend'
'select0' => 'mytestuser'
));
$result = $sock->fetch_body();
print_r($sock);
print_r($result);
?>
Thank you.