Can somebody help me? I could add the file to my webPage in version 2 like this (img1): drive.files().get(fileID).execute().getAlternateLink());
How i can do this in ver3 ?? All of this method return null: getWebContentLink ,getWebViewLink,getThumbnailLink
2) How i can get full access auth? Google examples doesn't works
img1
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
In Drive v3, to retrieve metadata properties (i.e. WebViewLink, thumbnailLink,emailAddress, etc.), you will only need to specify the individual fields
required by the app.
Try something like this (example in Python):
file_id ='XXXXXXXXXXXXXXXXXX'
file = service.files().get(fileId=file_id, fields='webViewLink').execute()
print 'Title: %s' % file['webViewLink']
Hope this helps. Good luck!