API reference: https://api.immobilienscout24.de/api-docs/import-export/attachment/overview/
To get all attachments, you need to pass a real estate id.
$attachment = new Attachments();
$attachment->getAllByRealEstate(int $id);
$attachment->getOneById(int $realEstateId, int $id);
Get all contacts, that are visible on the profile page
$attachment->getVisibleContacts(int $realEstateId, int $id);