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

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -