Google Sheets APIには、シートの一覧を取得するメソッドはないようです。
代わりにGoogle Drive APIでFiles.List()で取得したFileResource.ListRequestのQに
“mimeType=’application/vnd.google-apps.spreadsheet'”
を設定し、Execute()することでシートの一覧を取得できます。
参照
https://developers.google.com/drive/api/v3/reference/files/list
https://github.com/google/google-api-dotnet-client-samples/blob/master/Drive.Sample
コメントを残す