Google云端硬盘链接的URL格式和查询参数 [英] Google Drive Links URL format and query parameters
问题描述
我正拼命寻找google drive和google docs urls方案以及查询参数的记录位置.例如,usp =参数似乎有几个可能的值是什么?另外,为什么要这样链接 https://drive.google.com/drive/u/2/#folders/将在Safari和Chrome中打开一个文件夹,而无需进行新的身份验证,而链接如
I'm desperately trying to find where the google drive and google docs urls scheme and query parameters are documented. For example what is the usp= parameter which seems to have several possible values ? Also, why a link like this https://drive.google.com/drive/u/2/#folders/ will open a folder in Safari and Chrome without new authentication while a link like https://drive.google.com/drive/#folders/ will only work correctly in chrome. What is the meaning of u/2/ ? etc. Anyone knows how to find a complete documentation of these url schemes ?
推荐答案
关于/u/2/的部分已经得到令人满意的解释,因此,我将尽我所能来解释关于usp的部分.
As the part about /u/2/ has already been satisfactorily explained, I'll try to explain the part about usp from my best understanding.
似乎只是在您访问文档的位置提供数据.
It seems to just be providing data on from where you got access to the document.
usp=docs_home
是从Google Docs本身创建新文档的时候
使用Drive SDK链接时给出usp=drivesdk
.
usp=sharing
是当您从共享对话框中获得链接时
在文档首页或云端硬盘中单击文档后,会得到usp=drive_web
当您直接转到sheets.google.com
或slides.google.com
usp=docs_home
is when you create a new document from Google Docs itself
usp=drivesdk
is given when you get a link using the Drive SDK
usp=sharing
is when you get a link from the sharing dialogue
usp=drive_web
is what you get when you click on a document in the Docs homepage or in Drive
usp=direct_url
is seen on the Docs homepage when you directly go to sheets.google.com
or slides.google.com
可能还有更多的发现,但是除了可能提供引荐来源信息外,它似乎没有做任何其他事情.用其他任何内容替换usp=sharing
似乎仍然不会阻止您检索文档,而且这似乎不太可能是特定于文档的属性,因为在其他Google网址(如幻灯片/工作表首页)上也可以看到该属性.
There are probably more to be found, but it doesn't seem to be doing anything other than likely providing referrer information. Replacing usp=sharing
with anything else still doesn't seem to stop you from retrieving a document, and it seems unlikely that this would be a document-specific property as it is also seen on other Google URLs, like the slides/sheets homepage.
这篇关于Google云端硬盘链接的URL格式和查询参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!