minghuixian
V2EX  ›  Google

请问 google drive api 获取文件的 id

  •  
  •   minghuixian · Jul 26, 2020 · 3351 views
    This topic created in 2141 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   ·   925 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:33 · PVG 03:33 · LAX 12:33 · JFK 15:33
    ♥ Do have faith in what you're doing.