Home / Statistics / one
Retrieve the advanced statistics of the provided mail.
These statistics are far more advanced than the `all` statistics.
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.
- The mailing parameter is required.
- The mailing parameter has the wrong format.
- The selected mailing does not exist.
You should call this function as followed:
- rest/v2/statistics/one?token=TOKEN&database=DATABASE_ID&mailing=MAILING_ID
require_once 'Rest.php';
$username = 'my_username';
$password = 'my_password';
$database = '999';
$rest = new Rest($username, $password, $database);
$result = $rest->call('statistics/one', [
'mailing' => 'MAILING_ID'
], 'GET');
var_dump($result);
The following parameters this method can/should be called with:
key: mailing
values: integer, >= 0
what: The mailing you want to retrieve detailed statistics for.
The following items:
- user/login For the TOKEN.
- user/database For the DATABASE_ID
- statistics/all For the MAILING_ID