$configuration = [
'client_id' => '{ ... }',
'client_secret' => '{ ... }',
'redirect_uri' => '{ ... }',
'currentUserEmail' => '{ ... }',
'token_persistence_path' => __DIR__
];
$id = '{ ... }';
ZCRMRestClient::initialize($configuration);
$contacts = ZCRMRestClient::getModuleInstance('Contacts');
$response = $contacts->getRecord($id); // To get module records
$record = $response->getData(); // To get response data