Google Drive PHP Client render PDF? -
i'm trying render pdf service account (the file shared service).
$pdf = $drive->files->get($file_id); $pdf->downloadurl
however, resource coming in 401 unauthorized. it's funny i'm authorized files , everything, downloading actual files unauthorized?
i want render pdf inside page, possible?
the downloadurl , webcontentlink not authorized, have send access_token request:
$file->downloadurl . '&access_token=' . $access_token;
Comments
Post a Comment