Let's say I push up a video to Google Drive. I share the video link with various users, is there a way to obtain the # of bytes served, and by whom or of some unique ID?
Sorry, this data is not available from the API. Of course if you are downloading and serving the files through your app, you can generate it yourself.
Related
I am attempting to verify that I have successfully copied a bunch of photos from google photos to onedrive. I can programmatically get the sha1 hash of each file stored in OneDrive but I don't see the same option from the google photos rest api. I would have expected it to be in the metadata: https://developers.google.com/photos/library/reference/rest/v1/mediaItems#MediaMetadata
It also doesn't look like the stored photos are exposed through the Google Drive api, so how do I get the hash?
You can get the MD5 Checksum for the files stored on Google drive with the Drive API.
However, there is no way to get the SHA1 hash for files without downloading them.
Also, there is no way to get either of those with the Google Photos API.
Yes you can without downloading the photos - check rclone (listing as jsons returns the hashes)
https://rclone.org/commands/rclone_lsjson/
https://rclone.org/googlephotos/
Im trying to cache Google Maps Api, to reduce requests.
In their optimize recommendations they write about web-server proxying.
I made it with nginx. Cached everything in the world, but not these requests to Google Maps Api!
I saved locally script of Google Maps, it cached, but it sends requests from its inside.
I see in development console, for example, tiles of map loaded from "memory cache", but requests still counting in google dashboard.
I heard, its not possible, but they wrote about caching in their official docs.
Where I can read about this? What I can do?
You can't.
The only part of the Google Maps API you can cache is certain geocoding results (and even then, only certain results, and only for a limited time). There is no way to cache the interactive maps on your server.
Do not attempt to cache any Javascript or other content used to display Google Maps in the browser. The contents of those scripts may change without notice, and many of your visitors will have those scripts in their browser cache already (e.g, from visiting other web sites which use Google Maps).
I saw that Google has release Google Photos, but there is no API for Google Photos, only Picasa Web Album, but the problem is the API support for Picasaweb limit by 100MB, so can we do the cheat upload same as the browser (Picasa web or Google Photos upload) to upload video larger than 100MB?
I've do the analytics the header package of Picasa/Photos when trying to upload a video, look like it's use the resumable technical to upload video.
When I do the analytics of Picasaweb upload, I've saw that it's use the docs.google.com domain to handle the upload, so is there any relating between the Google Drive and Picasa? I mean can we upload video/image to Picasa through Google Drive?
Thanks.
While uploading a video to Picasa cannot be achieved either by the Picasa API or Drive API, you can upload the video to your Drive account, with a file of up to 5120GB.
To be able to do this, you should implement a Resumable Upload, splitting the file into chunks of the same size, and uploading one by one. The process is fully documented and described here: https://developers.google.com/drive/web/manage-uploads#resumable
I have been looking for quite some time and cannot seem to find the answer I need. I tried using the iframe tag method for Google Docs Viewer to view my files and noticed that pptx, xlsx, etc... PDF seems to be the only one that is visible. So I came to the conclusion I have to use Google Drive and it's API. If that is so, my question is... Can I keep these files hosted on my clients server and use the API to view the files or do they have to be hosted on Google Drive's cloud server? Thank you.
No, this is not possible, sorry. All files are stored on the Google Drive cloud servers.
I'm building a web app that integrates with Google Drive, and am wondering if there was a way to list, search or delete files.
I see from https://developers.google.com/drive/v1/reference/files#resource that there are 4 operations. If there are no list and search capabilities then the onus is on the app to handle the management of file ids.
Is there another API I should be using? Are those features in the works?
Drive API v2 was launched yesterday, which now supports full file operations including listing, searching, etc.
Check out the reference docs.