Google Drive原始数据? [英] Google Drive raw data?

查看:276
本文介绍了Google Drive原始数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谷歌有没有包含该文件的原始数据的网址?使用 https://drive.google.com/file/d/FILE_ID 只是将您带到文件的分享部分...假设我有一个.js文件在GDrive上。如果你去他们的共享链接,他们有一个共享页面。是否有任何链接从文件中获取原始javascript,如< script src =google_link_or_whatever>

Is there any URL google has that contains the raw data for the file? using https://drive.google.com/file/d/FILE_ID just takes you to a 'share' section of the file... say I have a .js file on GDrive. If you go to their share link, they have a share page. Is there any link to get the raw javascript from the file, as to use in a <script src="google_link_or_whatever">?

>没有API,也没有必要的JS。
已确认正在使用最新版本的云端硬盘。
如果您的服务器不使用https,但是供应商插件要求https在CSS或其他文件中调用,则可以采用很好的解决方法:

No API's and no JS necessary. Confirmed now working on latest version of Drive. Great workaround for if your server doesn't use https but a vendor plugin demands https to call in a CSS or other file:


  1. 在您想要的文件(例如FILE.css)上打开文件夹,点击共享设置,然后选择高级,然后选择网络上公开 - 互联网上的任何人都可以查找和查看。

  2. 在网址栏(或分享链接)中,复制drive.google.com/drive/u/0/folders /
  3. 中的所有内容
  4. 使用该ID替换XX-XXXXXXXXXXXXX在: http://googledrive.com/host/XX-XXXXXXXXXXXXX/FILE.css
  5. 在步骤3中导航到附加的URL,您现在将看到您的原始数据。

  1. On the folder with your intended file (e.g. FILE.css), hit Sharing Settings, then Advanced, then select "Public on the web - Anyone on the Internet can find and view."
  2. In the URL bar (or share link), copy everything after the drive.google.com/drive/u/0/folders/
  3. Use that ID to replace the XX-XXXXXXXXXXXXX in: http://googledrive.com/host/XX-XXXXXXXXXXXXX/FILE.css
  4. Navigate to the appended URL in Step 3 and you will now see your raw data.

我的用例如下:

My use case below:

<script type="text/javascript">
var vsDisableResize = false;
var vsCssUrl =         'https://cbe7c864b9c1ae8d5be60c7fed3e467334a04d2f.googledrive.com/host/0B9ngkmVbo5T7TDhTTU81M25iNnc/cart.css';
var vsWineryId = '850';
var vsWineListId = '71';

感谢@ chris.huh at: https://productforums.google.com/forum/#!topic/ drive / MyD7dgLJaEo

Credit to @chris.huh at: https://productforums.google.com/forum/#!topic/drive/MyD7dgLJaEo

这篇关于Google Drive原始数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆