*
 * To create a new site it id mandatory to reference the project you want to create the site for:
 */
$project = new \Productsup\Platform\Project();
$project->id = 9697;
$siteService->setProject($project);
/**
 * Creating the new site works like this:
 * for more information about the possible actions of sites @see /examples/Service/Sites.php
 */
$siteObject = new \Productsup\Platform\Site();
$siteObject->title = 'new example site';
$reference = new \Productsup\Platform\Site\Reference();
$reference->setKey('MyTestReference');
$reference->setValue('TestId');
$siteObject->addReference($reference);
$siteObject = $siteService->insert($siteObject);
/**
 * To enable an export to a Google Content API, you can use the "exports service":
 */
$exportService = new \Productsup\Service\Exports($client);
/**
 * adding a reference to the site you want to export:
 * for more information on how references in services work, @see /examples/Service/ProductData.php
 */
$Reference = new \Productsup\Platform\Site\Reference();
$Reference->setKey('MyTestReference');
$Reference->setValue('TestId');
$exportService->setReference($Reference);
/**
 * enableContentApi enables the export to one of your merchant centers