google-api-v3

Google Drive API v3 : there isn't any way to get a download url for a google document?

安稳与你 提交于 2019-12-04 11:49:28
The Google Drive API v2 to v3 migration guide says: The exportLinks field has been removed from files. To export Google Documents, use the files.export method instead. I don't want to export (download) the file right away. "files.export" will actually download the file. I want a link to download the file, later. This was possible in v2 by means of the exportLinks. How can I in v3 accomplish the same? If it is not possible, why was this useful feature removed? Besides, (similar problem to above) downloadUrl was also removed, and the suggested alternative ("files.get with ?alt=media") downloads

Google API v3 retrieving all contacts

谁说我不能喝 提交于 2019-12-03 22:46:37
问题 I'm writing a code (in Java) that let me get all contacts from my google account, using google API v3. My problem is that after I successfully authorize access to account I get contacts only from "Most Contacted" group. As feedURL I'm using https://www.google.com/m8/feeds/contacts/default/full/ according to this tutorial. Basically my code is copy-paste of this example, so how can I get all my contacts? 回答1: In the documentation https://developers.google.com/google-apps/contacts/v3/

Google REST API v3 - Revisions:list vs “Show more detailed revisions”

我的梦境 提交于 2019-12-02 21:10:24
I need to get the detailed list of the revisions for a Google Document. When using the Google API Explorer on: GET https://www.googleapis.com/drive/v3/files/{fileId}/revisions I get only the non-detailed list. Which is the API to call (or the parameter to set) in order to get something similar to what can be seen by pressing Show more detailed revisions ? Update: I tried to "sniff" the browser traffic and I realized that Google Drive periodically requests the revision list to the URL: https://docs.google.com/spreadsheets/d/{fileId}/revisions/history?id={fileId}&start=1&end=-1&zoom_level=0