' I am calling this from Main with GD.ShowFileList("") where GD is an initialised GoogleDrive object.
Sub ShowFileList(ParentFolderID As String) As ResumableSub
Dim h_sfl As HttpJob
h_sfl.Initialize("", Me)
If ParentFolderID = "" Then
h_sfl.Download2("https://www.googleapis.com/drive/v3/files", _
Array As String("access_token", myAccessToken, _
"corpora", "user", _
"q","mimeType!='application/vnd.google-apps.folder' and trashed=false"))
Else
h_sfl.Download2("https://www.googleapis.com/drive/v3/files", _
Array As String("access_token", myAccessToken, _
"corpora", "user", _
"q", $"mimeType!='application/vnd.google-apps.folder' and '${ParentFolderID}' in parents and trashed=false"$))
End If
Wait For (h_sfl) JobDone(h_sfl As HttpJob)
Log("h_sfl.Success=" & h_sfl.Success)
If h_sfl.Success Then
....
....
Else
' Log("#- x231, h_sfl.ErrorMessage=" & h_sfl.ErrorMessage)
End If
h_sfl.Release
Return Null
End Sub