嵌入式Google驱动器订购 [英] Embedded google drive ordering

查看:45
本文介绍了嵌入式Google驱动器订购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以对Google驱动器文件进行排序,以在顶部显示最新或最后修改的文件吗?我只能看到用于在iframe中显示文件的列表和网格选项.如果没有,我的客户正面临这个问题的任何建议或替代解决方案?

Can we sort google drive files to show the newest or last modified ones on the top ?? I only can see the list and grid option for showing files in iframe. If not , any advice or alternative solution for this issue that my client is facing it ?

推荐答案

以下是您列出驱动器中的文件.

此方法接受q参数,该参数是结合了搜索查询的一个或多个搜索字词.有关更多信息,请参见搜索以下内容:文件和团队驱动器指南.

您实际上可以使用参数 orderBy 对其进行排序.

And you can actually sort it by using the parameter orderBy.

以逗号分隔的排序键列表.有效键为"createdTime",文件夹","modifiedByMeTime","modifiedTime" ,名称",名称自然",'quotaBytesUsed','recency','sharedWithMeTime','starred'和"viewedByMeTime".每个键默认情况下升序排列,但可能是与"desc"修饰符相反.用法示例:?orderBy = folder,modifiedTime desc,name.请注意,其中有一个当前限制在大约一百万个文件中的用户所请求的排序顺序将被忽略.

A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.

您还可以通过进行测试.

这篇关于嵌入式Google驱动器订购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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