Home / Selections / findById
Find selections by id.
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 email parameter is required.
- The email parameter is invalid.
- The selected subscriber does not exist.
- An id/list of ids are required.
You should call this function as followed:
- rest/v2/selections/getById?token=TOKEN&database=DATABASE_ID&id[]=SELECTION_ID&id[]=SELECTION_ID
require_once 'Rest.php';
$username = 'my_username';
$password = 'my_password';
$database = '999';
$rest = new Rest($username, $password, $database);
$result = $rest->call('selections/findById', [
'id' => [
'SELECTION_ID',
'SELECTION_ID'
]
], 'GET');
var_dump($result);
The following parameters this method can/should be called with:
key: id
values: integer or array[integer]
what: The
The following items:
- user/login For the TOKEN.
- user/database For the DATABASE_ID