S3 API to get R2 file content
I would like to use the S3 PHP API to get the results from Cloudflare logpush. I can successfully list the objects with $client->listObjects(...). However if I want to get the content of an object with
$client->getObject([
'Bucket' => self::BUCKET_NAME,
'Key' => $object['Key']
]);
I get as Body an empy GuzzleHttp\Psr7\Stream instance. How can I get the real content of that gzip-ed object?
1 Reply
Hi Everybody!