Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ここのファイルリソース:https ://developers.google.com/drive/v2/reference/files#resource
取得したファイルのリソースで親から唯一のparentIDを取得するにはどうすればよいですか?
Python では、ファイル リソースがfあり、親が 1 つしかない場合:
f
parentId = f['parents'][0]['id']