Contentful logo

Contentful Community

Management query don't work

Hello everyone,

I need your help to run the basics of a management request, but I have documentation that I repeat exactly with my changes of course but nothing happens, not even an error.

I did not find anything to help me more in posts on this forum or on the code here: https://github.com/contentful/contentful-management.php

$manager = new Contentful\Management\Client(ACCESS_TOKEN_MANAGEMENT);
$environmentProxy = $manager->getEnvironmentProxy(SPACE_ID, ENVIRONMENT_ID);
$queryDelete = new \Contentful\Management\Query();
$queryDelete->setContentType(‘APP_STATISTIQUE_USAGE’);
$queryDelete->setLimit(5);
$entriesDeleted = $environmentProxy->getEntries($queryDelete);

foreach($entriesDeleted as $entry) {
echo $entry->getField(‘evenement’,‘Recherche’);
}

Nobody for help me please?