Google, why do you do this to me? :face_with_rolli...
# random
s
Google, why do you do this to me? πŸ™„πŸ˜…πŸ« 
y
This is a good example of why debugging is useful: when you're using some unfamiliar API and you're like "WTH is going on". A bunch of printlns might be able to save you, but exploring around in a debugger will yield faster results usually
βž• 2
πŸ’― 2
t
the docs could use an example, I am not sure how to interpret
This method accepts the q parameter
with
use the trashed=false query parameter
, I suspect they mean
q=trashed=false
but an example would help. documentation is hard (and debug useful)
πŸ‘ 1
🧠 1
s
Oh, yes...
q=trashed=false
works. https://developers.google.com/drive/api/reference/rest/v3/files/list is so confusing, because they call
trashed
a "query parameter", but it's not in the list of query parameters. But for the usage of
q
there is actually a sample including
trashed
. Google Drive Docs are a mess πŸ˜„
πŸ˜† 3
I'll let them know.
t
oh, the feedback functionality is a nice touch, curious how long it will take to get a feedback (or if they will just update the docs)
s
I'll let you know. πŸ™‚
gratitude thank you 2
y
I'm sorry, WHAT?
q=trashed=false
??? Maybe I'm just bad at reading docs, but I wouldn't have guessed that in my wildest dreams. I'm sure there's a "perfectly reasonable" explanation for how that came about, but it's still unintuitive
πŸ‘ 3
s
Yeah, on the next page is the thing that gave a hint to that. I wouldn't have guessed that, too. πŸ˜„
The whole Google Drive API is questionable.
k
I guess it's somewhat consistent with Google Search, where the search term is a value of the
q
query parameter. In the Google Drive API it looks like everything that specifies restrictions on which files to list is a value of the
q
parameter.
πŸ’‘ 1