RemoteAdmin:admin get agent count
From OpenSimulator
(Difference between revisions)
(Created page with "'''admin_get_agent_count''' remotely allows to agent count. === Enabling admin_get_agent_count=== If not all functions are enabled, use admin_get_agent_count to enable the fu...") |
JeffKelley (Talk | contribs) m (→PHP: Fixed broken Google Code link, replacing with internal page) |
||
Line 54: | Line 54: | ||
== Example == | == Example == | ||
=== PHP === | === PHP === | ||
− | This example needs the RemoteAdmin PHP Class file available [ | + | This example needs the RemoteAdmin PHP Class file available [[RemoteAdmin:RemoteAdmin_Class|here]]. |
<source lang="php"> | <source lang="php"> |
Latest revision as of 11:34, 16 March 2021
admin_get_agent_count remotely allows to agent count.
Contents |
[edit] Enabling admin_get_agent_count
If not all functions are enabled, use admin_get_agent_count to enable the function in the [RemoteAdmin] section
enabled_methods = admin_get_agent_count, ...
[edit] Parameters
[edit] Required Parameters
No parameters are required
parameter | Description | Values |
---|
[edit] Optional Parameters
No optional parameter
parameter | Description | Values |
---|
[edit] Returned Parameters
[edit] Returned Parameters
These parameters are returned by Remote Admin
parameter | Description | Values |
---|---|---|
success | true when successfull | true, false |
count | Agent count | number |
[edit] Error messages
no region_name or region_id given
[edit] Notes
...
[edit] Example
[edit] PHP
This example needs the RemoteAdmin PHP Class file available here.
<?php // Including the RemoteAdmin PHP class. include('RemoteAdmin.php'); // Instantiate the class with parameters $myRemoteAdmin = new RemoteAdmin('127.0.0.1', 9000, 'secret'); // Invoke admin_get_agent_count (multiple parameters) $parameters = array('region_name' => '<REGION_NAME_HERE>', 'region_id' => '<REGION_ID_HERE>'); $myRemoteAdmin->SendCommand('admin_get_agent_count', $parameters); ?>