How to get full file get response from Google Drive V3

后端 未结 1 604
粉色の甜心
粉色の甜心 2021-02-14 20:27

The Google drive v2 seams to return a full file resource by default when I preform a file.Get. However when I make the same request against V3 even though the documentation sta

相关标签:
1条回答
  • 2021-02-14 20:41

    After digging around in the documentation I managed to find a comment.

    Use wildcards in field selections, if needed.
    For example: fields=items/pagemap/* selects all objects in a pagemap.

    So I tried this.

    GET /drive/v3/files/0B5pJkOVaKccEVEsybFA2WjJjQ1k?access_token={Token}&fields=* 
    

    Sure enough it returned the full File resource.

    Solution was to add fields=* to the request. Personally I think this should be default.

    0 讨论(0)
提交回复
热议问题