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

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -