php - How to retrieve file id from google drive file URL -


i have url of file, details of file, file_id required? there way retrieve file_id url.i'm looking like

$driveservice->files->getfileidfromurl($url) 

apparently google doesn't provide explicit interface, using regex extract id string best bet.

see easiest way file id url on google apps script how javascript.

regexes available in php. can test php regexes @ http://www.phpliveregex.com/


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -