Getting system information

You may need to retrieve information about the CXM instance you are connected to. You can do this by requesting information about Applications for the instance.

The only application currently available via the Service API is the 'control_centre'. Use the ApplicationManager to retrieve information such as the title and URL of the application.

<?php

/** @var \Jadu\Quantum\ServiceApiClient\Manager\ApplicationManager $applicationManager */
$applicationManager = $container->get('quantum_service_api_client.manager.application');
$application = $applicationManager->getApplicationByName('control_centre');

print $application->getTitle() . PHP_EOL;
print $application->getBaseUrl() . PHP_EOL;

results matching ""

    No results matching ""