Home / Email_agent / getCount
Get the count of registered Email Agents.
The following errors can occur:
- Token not present in request.
- Token not in the required format.
- Session does not exist.
- Session has expired.
- The user does not exist.
- No database specified.
- Database parameter not in correct format.
- You are not allowed to access this database.
You should call this function as followed:
- rest/v2/email_agent/getCount?token=TOKEN&database=DATABASE_ID
require_once 'Rest.php';
$username = 'my_username';
$password = 'my_password';
$database = '999';
$rest = new Rest($username, $password, $database);
$result = $rest->call('email_agent/getCount', [
], 'GET');
var_dump($result);
This method has no parameters.
The following items:
- user/login For the TOKEN
- user/database For the DATABASE_ID