TL:DR How would I go about to replicate a script like this http://api.getlinkdrive.com/ for Google Drive videos.
Google video playback request links are bound by ip and token. I can get those links by using drive.google.com/get_video_info?docid=FILEID But needs to be executed on the clients browser if you get the fmt stream map from the Digital Ocean droplet you get links personalised to the droplets ip.
If you get it from the clients ip you get a link for the users ip, which is what I want as result.
But unfortunately CrossDomain ajax requests won't work for that.
Some API I have seen does what I want to make: http://api.getlinkdrive.com/
You enter a shared link and get the redirector.googlevideo.com/playback? link for each resolution.
I have seen from the link that they registered themselves as an Google drive app. Would that have anything to do with it?
Can I use the Google drive SDK for it? I have looked into the google drive SDK but a GET request to the api on FULL doesnt return any video related data except length and resolution.
-Thanks for helping