我怎样才能从 Google Drive 直接下载视频 link
How can I get a video direct download link from Google Drive
我想知道如何生成 Google Drive 视频的直接下载 link 以在
Google 驱动器 Link:https://drive.google.com/file/d/1FlouiWkFFFY-EifBvTROUu6FQbmmZDiJ/view
Link 导演:https://doc-0g-8c-docs.googleusercontent.com/docs/securesc/p22vt9slaonv5s18tm3a1jpe77d8lu5p/s1m3t0dva8abf90eubu4n3fumjedpmmk/1604628150000/06703729259022707558/01934340001261439815/1FlouiWkFFFY-EifBvTROUu6FQbmmZDiJ?e=download&authuser=0&nonce=d0jh448t78up6&user=01934340001261439815&hash=2vgeqfmorr1bk3lrmp6quc2mdrd8h47p
您可以使用驱动器 API 中的 webContentLink
字段。
webContentLink
> A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
因此,您将不得不提出以下要求
GET https://www.googleapis.com/drive/v3/files/fileId?fields=webContentLink
其中 fileId
是您提到的视频的 ID。
根据您的具体需要,您可能还想查看 webViewLink
参数。
参考
我想知道如何生成 Google Drive 视频的直接下载 link 以在
Google 驱动器 Link:https://drive.google.com/file/d/1FlouiWkFFFY-EifBvTROUu6FQbmmZDiJ/view Link 导演:https://doc-0g-8c-docs.googleusercontent.com/docs/securesc/p22vt9slaonv5s18tm3a1jpe77d8lu5p/s1m3t0dva8abf90eubu4n3fumjedpmmk/1604628150000/06703729259022707558/01934340001261439815/1FlouiWkFFFY-EifBvTROUu6FQbmmZDiJ?e=download&authuser=0&nonce=d0jh448t78up6&user=01934340001261439815&hash=2vgeqfmorr1bk3lrmp6quc2mdrd8h47p
您可以使用驱动器 API 中的 webContentLink
字段。
webContentLink
> A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
因此,您将不得不提出以下要求
GET https://www.googleapis.com/drive/v3/files/fileId?fields=webContentLink
其中 fileId
是您提到的视频的 ID。
根据您的具体需要,您可能还想查看 webViewLink
参数。