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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -