RemoteAdmin:admin exists user
From OpenSimulator
(Difference between revisions)
(Created page with "'''admin_exists_user''' remotely allows to check if a certain user account exists === Enabling admin_exists_user === If not all functions are enabled, use admin_exists_user to ...") |
(→Returned Parameters) |
||
Line 41: | Line 41: | ||
! Description | ! Description | ||
! Values | ! Values | ||
+ | |- | ||
+ | | ''success'' | ||
+ | | true when successfull | ||
+ | | true, false | ||
|- | |- | ||
| ''user_firstname'' | | ''user_firstname'' | ||
Line 54: | Line 58: | ||
| | | | ||
|} | |} | ||
− | |||
=== Error messages === | === Error messages === |
Revision as of 12:08, 9 December 2011
admin_exists_user remotely allows to check if a certain user account exists
Contents |
Enabling admin_exists_user
If not all functions are enabled, use admin_exists_user to enable the function in the [RemoteAdmin] section
enabled_methods = admin_exists_user,...
Parameters
Required Parameters
These parameters are required
parameter | Description | Values |
---|---|---|
user_firstname | first name of user | |
user_lastname | last name of user |
Optional Parameters
No optional parameters.
Returned Parameters
Returned Parameters
These parameters are returned by Remote Admin
parameter | Description | Values |
---|---|---|
success | true when successfull | true, false |
user_firstname | first name of user | |
user_lastname | last name of user | |
lastlogin | timestamp of last user login |
Error messages
No error messages.
Notes
Example
PHP
<?php // Including the RemoteAdmin PHP class. include('RemoteAdmin.php'); // Instantiate the class with parameters identical to the Python example above $myRemoteAdmin = new RemoteAdmin('127.0.0.1', 9000, 'secret'); // Invoke admin_exists_user (multiple parameters) $parameters = array('user_firstname' => 'John', 'user_lastname' => 'Doe'); $myRemoteAdmin->SendCommand('admin_exists_user', $parameters); ?>