V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
minghuixian
V2EX  ›  Google

请问 google drive api 获取文件的 id

  •  
  •   minghuixian · Jul 26, 2020 · 3289 views
    This topic created in 2112 days ago, the information mentioned may be changed or developed.

    https://developers.google.com/drive/api/v2/reference/files/list google 的 api,看了看只能获取整个 gd 的文件的 ID 或者是文件夹的 ID 请问有什么方法可以获取指定文件夹下的文件的 ID ?谢谢。

    2 replies    2020-07-26 11:35:47 +08:00
    ooh
        1
    ooh  
       Jul 26, 2020
    康了康 q 参数不就是搜索参数吗: https://developers.google.com/drive/api/v2/search-files
    jasonz
        2
    jasonz  
       Jul 26, 2020
    fields 筛选返回参数, `fields='nextPageToken, items(id, title)'`(v2) 或是 `fields="nextPageToken,files(id,name,md5Checksum,size)")`(v3), 不过我只试过 v3 的 api
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5618 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 07:32 · PVG 15:32 · LAX 00:32 · JFK 03:32
    ♥ Do have faith in what you're doing.